WPF应用程序:Visual Studio与Expression Blend

Ice*_*ind 20 blend visual-studio-2010 microsoft-expression visual-studio expression-blend

我对Visual Studio 2010和Expression Blend 4如何协同工作有点困惑.如果我想创建一个WPF应用程序,我应该在Expression Blend 4中启动吗?如果是这样,那么Visual Studio 2010如何在本机上打开Expression Blend项目,或者它是如何实现的呢?

或者我应该在Visual Studio 2010中启动我的应用程序?如果是这样,我如何在Expression Blend中打开我的解决方案.

另外,如果需要更改,如何修改现有的WPF表单.如果我已经处理了事件并且代码落后了,我如何将其转换为表达式混合,进行更改,然后将其恢复到visual studio而不会中断我在Visual Studio 2010中创建的事件和代码?

也有人可以推荐一本好书,介绍如何使用Expression blend 4和Visual Studio 2010一起创建WPF和/或Silverlight应用程序.

Sor*_*oot 21

Solutions are the same for Visual Studio and Expression Blend. You can open your solution through the file menu in expression blend, or by right clicking on a xaml file in Visual Studio and select "Open In Expression Blend".

Personally, when I need to make only a small change, like changing the text on a button, I don't go into Blend. But when I want to see what's going on, with margins and layout and stuff I always use Blend. Most often I have Visual Studio and Blend open side by side and I keep switching back and forth.

Because Expression Blend uses the same solution you don't have to worry about event handlers and such. When they are in place, they stay in place. Unless you delete the control the event is attached to of course.

Creating a solution can be done in both tools, but I start most projects in Visual Studio. There are however a few Project templates that can't be found in visual studio. For example the Databound Application project type. This will give you a start on an MVVM project, with folders in place for the Model, View and ViewModel.