wpf 出于什么原因,我应该在 XAML 设计器上使用 Expression Blend?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/15108028/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
For what reasons should I use Expression Blend over XAML Designer?
提问by l46kok
Forgive me if this isn't the right place to ask (and please move my thread accordingly if it isn't).
如果这不是正确的提问地点,请原谅我(如果不是,请相应地移动我的主题)。
I've been developing WPF application for about a year or so and I basically do all my design in XAML Designer in VS. Aside from few oddities, I've felt pretty comfortable with it and never felt the need to seek out another design tool for WPF applications. (Except for Kaxaml, but that's still in the realm of XAML Designer)
我一直在开发 WPF 应用程序大约一年左右,我基本上在 VS 中的 XAML 设计器中完成我的所有设计。除了一些奇怪的东西,我对它感觉很舒服,从来没有觉得需要为 WPF 应用程序寻找另一种设计工具。(Kaxaml 除外,但这仍属于 XAML 设计器的范畴)
I've looked at threads and videos demonstrating what Expression Blend does and, sure it's fancy but it's nothing that you can't do with plain old XAML Editor.
我查看了演示 Expression Blend 功能的线程和视频,当然它很漂亮,但使用普通的旧 XAML 编辑器没有什么是你做不到的。
Some say that Expression Blend is a tool intended mostly for designers, but I fail to see this point. You need to have software development knowledgein order to properly develop an WPF application even if you are just going to be doing designs.
有人说 Expression Blend 是一个主要为设计师设计的工具,但我没有看到这一点。即使您只是要进行设计,您也需要具备软件开发知识才能正确开发 WPF 应用程序。
- What are some things that Expression Blend can do while XAML Designer in VS can't?
- For what other reasons should I feel compelled to design a WPF application in Expression Blend?
- 有哪些 Expression Blend 可以做而 VS 中的 XAML 设计器不能做的事情?
- 出于哪些其他原因,我应该觉得有必要在 Expression Blend 中设计 WPF 应用程序?
回答by Isak Savo
Saying "[Expression Blend is] fancy but it's nothing that you can't do with plain old XAML Editor"is like asking why you would use Photoshop when you can just do the same thing in MS Paint.
说“[Expression Blend 是] 花哨的,但没有什么是你不能用普通的旧 XAML 编辑器做的”就像在问为什么你会使用 Photoshop,而你可以在 MS Paint 中做同样的事情。
Sure you can, but you're not going to be very productive.
当然可以,但是您的工作效率不会很高。
A few things that I always use Blend for (as opposed to XAML editor or even the Visual Studio designer):
一些我总是使用 Blend 的东西(与 XAML 编辑器甚至 Visual Studio 设计器相反):
- Brushes and color. Blend's UI is simply nicer than VS Designer
- Animations and Storyboards. (I may later edit them in XAML, but the initial ones if they are complex are easier and quicker to do in Blend)
- Visual States. VS Visual designer doesn't support this and they are tricky to do manually
- Editing styles and templates. Especially convenient is using Blend's "Create Copy" on an existing template
- The property editor is more pleasant to use (for example, click + drag mouse sideways to increase/decrease int value) and more thought through presentation and grouping of the properties
- 画笔和颜色。Blend 的 UI 比 VS Designer 更好
- 动画和故事板。(我稍后可能会在 XAML 中编辑它们,但如果它们很复杂,则在 Blend 中更容易、更快速地进行初始的编辑)
- 视觉状态。VS Visual Designer 不支持此功能,并且手动操作起来很棘手
- 编辑样式和模板。特别方便的是在现有模板上使用 Blend 的“创建副本”
- 属性编辑器使用起来更愉快(例如,单击并横向拖动鼠标以增加/减少 int 值),并且通过属性的呈现和分组进行了更多思考
That said - the bulk of my XAML work is done in the plain XML editor in Visual Studio though (I rarely use the designer). But I wouldn't dream of doing any serious WPF development without Blend
也就是说 - 我的大部分 XAML 工作都是在 Visual Studio 中的纯 XML 编辑器中完成的(我很少使用设计器)。但我不会梦想在没有 Blend 的情况下做任何严肃的 WPF 开发
回答by mlemay
I can say that Blend is more oriented for Graphic Designer, and Visual Studio for Developper.
我可以说 Blend 更适合 Graphic Designer 和 Visual Studio for Developper。
What I mean is in Blend, you can do everything just with a mouse click, animations are very easy to create step by step with a few mouse click, triggers are created by mouse click also. Basically, you don't have to go in the code for most of the time.
我的意思是在 Blend 中,您只需单击鼠标即可完成所有操作,只需单击几下鼠标即可轻松一步一步地创建动画,也可以通过单击鼠标来创建触发器。基本上,您大部分时间都不必进入代码。
For other reasons I really like Blend, is you can click on something, and edit (Edit current, or a copy) of the Style, you don't have to search where is located...
出于其他原因,我真的很喜欢 Blend,您是否可以单击某些内容,然后编辑(编辑当前或副本)样式,而不必搜索位于何处...
In our team, our graphic designer only works with Blend, and our developer works in VS and Blend.
在我们的团队中,我们的图形设计师只使用 Blend,而我们的开发人员则使用 VS 和 Blend。

