What are the differences between the WPF designer in Expression Blend and in Visual Studio (2008)?

半城伤御伤魂 提交于 2019-12-10 16:46:51

问题


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 :)


回答1:


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:

  • WPF 4 got some love/improvements
  • The designer is much better



回答2:


i just want to tell what's my opinion. In Visual Studio 2008 and Visual Web Developer 2008, both don't have the function of designing UI. so your design doesn't show in VS2008. but In Visual Studio 2010, it becomes better.Visual Studio 2010 will support a fully editable and interactive designer for Silverlight.



来源:https://stackoverflow.com/questions/2301963/what-are-the-differences-between-the-wpf-designer-in-expression-blend-and-in-vis

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!