且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Visual Studio 2015 和 Blend for Visual Studio 的比较

更新时间:2023-02-27 10:46:29

Blend 和 Visual Studio - 为什么是两个工具?

Visual Studio XAML 设计工具使您能够:

  • 设计自定义布局使用强大的布局工具,包括模板、内置控件、标尺、指南和对齐支持,为您的 Windows 应用商店应用设计自定义布局.
  • 创建控件并设置样式 将控件拖放到设计图面上,然后通过直接在 UI 中修改属性来设置样式.样式图像和元素.
  • 创建和编辑控件模板 使用模板编辑工具创建可在整个项目中重复使用的自定义控件模板.将它们添加到您的控件库中,以便在当前项目之外的项目中重复使用它们.
  • 创建和编辑数据模板 创建用于定义数据在应用中的显示方式的模板.
  • 显示示例和设计时数据绑定到 Windows 应用商店应用并在其中显示数据,以便您可以在运行时更轻松地修改数据的外观.
  • 使用行为添加交互性通过将内置行为拖到设计图面上的对象上并修改属性以满足您的需要,为您的应用添加交互性.
  • 编辑 XAML 标记 除了可以轻松创建和修改 XAML 而无需接触代码的 UI 工具.
  • Design a custom layout Use powerful layout tools, including templates, built-in controls, rulers, guides, and snapping support, to design custom layouts for your Windows Store app.
  • Create and style controls Drag and drop controls onto the design surface, and then style them by modifying properties directly in the UI. Style images and elements.
  • Create and edit control templates Use the template editing tools to create custom control templates that can be reused throughout your project. Add them to your control library to reuse them in projects outside of the current project.
  • Create and edit data templates Create templates that define how you want your data to be displayed in your app.
  • Display sample and design-time data Bind to and display data in your Windows Store app so that you can more easily modify the appearance of your data at runtime.
  • Use behaviors to add interactivity Add interactivity to your app by dragging a built-in behavior onto the object on the design surface and modifying the properties to suit your needs.
  • Edit XAML markup In addition to the UI tools that make it easy to create and modify XAML without touching code.

Blend 使您能够:

  • 在 XAML 设计器中插入控件并修改其行为

  • 将控件添加到画板您可以将控件从资产"面板拖到画板上,然后在属性"窗口中对其进行修改.
  • 根据图像、形状或路径制作控件您可以将任何对象制作成控件.
  • 让控件做事 当用户与控件交互时,控件可以执行操作.例如,他们可以启动动画、更新数据源或播放视频.使用触发器、行为和事件让控件发挥作用.
  • Add controls to the artboard You can drag controls from the Assets panel onto the artboard, and then modify them in the Properties window.
  • Make a control out of an image, shape, or path You can make any object into a control.
  • Make controls do things Controls can perform actions when users interact with them. For example, they can start an animation, update a data source or play a video. Use triggers, behaviors, and events to make controls do things.

在 XAML 设计器中插入图像、视频和音频剪辑

绘制形状和路径

  • 画一个形状
  • 绘制路径
  • 将形状转换为路径
  • 合并路径
  • 创建复合路径
  • 创建剪切路径

修改对象的样式

动画对象

  • 创建时间表
  • 添加关键帧并重复动画
  • 为交互添加事件触发器
  • 动画颜色
  • 创建和修改运动路径
  • 动画按钮
  • 创建动画并使用缓动

参考资料
https://msdn.microsoft.com/en-us/library/jj129478.aspx
https://msdn.microsoft.com/en-us/library/jj170634.aspx