Expression Blend和Visual Studio(2008)中的WPF设计器之间有什么区别? [英] What are the differences between the WPF designer in Expression Blend and in Visual Studio (2008)?

查看:91
本文介绍了Expression Blend和Visual Studio(2008)中的WPF设计器之间有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我最近在WPF应用中提出的有关设计时行为的问题所启发的. (不能在WPF中使用MVVM在设计时进行数据绑定-永远不会调用ViewModel属性)

最终的结果是我的设计时DataContext/ViewModel在Blend中可以完美地工作,但是在Visual Studio 2008中却没有显示.我决定不再研究它,因为我真正需要的是Blend支持. ,但令我感到惊讶的是,我一直在假设Blend和VS的WPF设计器不尽相同,这将使我感到惊讶.

那有什么区别?任何其他陷阱,有人知道吗?欢迎所有信息:)

简而言之,WPF在VS 2008之后就已经成熟了,所以设计器非常糟糕,因为它在Visual Studio的开发周期中就处于后期.

但是,在VS 2010中,设计人员得到了很多的改进(以及应用程序WPF的一般内容...很多VS 2010组件本身都是WPF),但我会坚持使用Blend目前.我个人使用Blend进行设计,使用Visual Studio进行代码.

VS 2010/WPF 4即将推出:

This was inspired by a question I asked recently regarding design time behaviour in my WPF app. (Can't databind at design time in WPF using MVVM - ViewModel property never gets called)

The net result of that is that my design time DataContext/ViewModel works perfectly in Blend, but doesn't show up in Visual Studio 2008. I've decided not to look further into it as Blend support is all I really need, but this surprised me as I had been working under the assumption that Blend and VS would have similar if not identical WPF designers.

So what are the differences? Any other gotchas anyone is aware of? All info welcomed :)

解决方案

In short, WPF matured after VS 2008, so the designer is pretty much crap since it went in very late in the development cycle for Visual Studio.

In VS 2010 however, the designer is much improved (as well as app WPF stuff in general...a lot of the VS 2010 components are WPF themselves), but I would stick with Blend for now. I personally use Blend for the design, Visual Studio for the code.

Coming up shortly with VS 2010/WPF 4:

这篇关于Expression Blend和Visual Studio(2008)中的WPF设计器之间有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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