WPF应用程序:Visual Studio与Expression Blend [英] WPF Applications: Visual Studio vs. Expression Blend

查看:241
本文介绍了WPF应用程序:Visual Studio与Expression Blend的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对Visual Studio 2010和Expression Blend 4如何一起运行感到有些困惑.如果要创建WPF应用程序,是否应该在Expression Blend 4中启动它?如果是这样,那么Visual Studio 2010是如何本机打开Expression Blend项目的呢?

I am a bit confused on how Visual Studio 2010 and Expression Blend 4 operate together. If I want to create a WPF application, should I start it in Expression Blend 4? If so, then how does Visual Studio 2010 natively open Expression Blend projects, or does it?

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

Or should I start my application in Visual Studio 2010? If so, how do I open my solution in Expression Blend.

此外,如果需要更改,如何修改现有的WPF表单.如果我已经处理了事件并保留了代码,如何将其带入表达式融合,进行更改,然后将其带回Visual Studio,而又不破坏在Visual Studio 2010中创建的事件和代码?

Also, how do I modify an existing WPF form, if I need changes. If I already have events handled and code behind, how do I bring it over to expression blend, make my changes, then bring it back to visual studio without disrupting the events and code that I have created in Visual Studio 2010?

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

Also can someone recommend a good book that covers how to create WPF and/or Silverlight applications using Expression blend 4 and Visual Studio 2010 together.

推荐答案

Visual Studio和Expression Blend的解决方案相同.您可以通过Expression Blend中的文件菜单打开解决方案,或者在Visual Studio中右键单击xaml文件并选择在Expression Blend中打开".

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".

就个人而言,当我只需要进行一些小更改(例如更改按钮上的文本)时,就无需进入Blend.但是,当我想查看发生了什么情况时,边距,布局和其他内容我总是使用Blend.大多数情况下,我的Visual Studio和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.

因为Expression Blend使用了您不必担心事件处理程序之类的相同解决方案.当它们就位时,它们保持原位.除非您删除控件,否则该事件当然会附加到该控件上.

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.

创建解决方案可以在两个工具中完成,但是我在Visual Studio中启动了大多数项目.但是,有一些Project模板在Visual Studio中找不到.例如,数据绑定应用程序项目类型.这将使您从MVVM项目开始,并为Model,View和ViewModel提供了适当的文件夹.

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.

这篇关于WPF应用程序:Visual Studio与Expression Blend的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆