Expression Blend 和 Visual Studio (2008) 中的 WPF 设计器有什么区别?
这是受到我最近提出的一个有关 WPF 应用程序中设计时行为的问题的启发。 (不能在 WPF 设计时使用 MVVM 进行数据绑定 - ViewModel 属性永远不会被调用)
最终结果是我的设计时 DataContext/ViewModel 在 Blend 中完美运行,但在 Visual Studio 2008 中没有显示。我'我决定不再进一步研究它,因为 Blend 支持是我真正需要的,但这让我感到惊讶,因为我一直在假设 Blend 和 VS 将具有相似(如果不是相同)的 WPF 设计器。
那么有什么区别呢?有人知道还有其他问题吗?欢迎所有信息:)
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 :)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
简而言之,WPF 在 VS 2008 之后成熟,因此设计器非常糟糕,因为它在 Visual Studio 的开发周期中进入得很晚。
然而,在 VS 2010 中,设计器得到了很大改进(以及一般的应用程序 WPF 内容...很多 VS 2010 组件本身就是 WPF),但我现在会坚持使用 Blend。我个人使用 Blend 进行设计,使用 Visual Studio 进行代码。
即将推出 VS 2010/WPF 4:
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:
我只想说出我的看法。
在Visual Studio 2008和Visual Web Developer 2008中,两者都不具备设计UI的功能。所以你的设计不会显示在VS2008中。但在 Visual Studio 2010 中,它变得更好。Visual Studio 2010 将支持 Silverlight 的完全可编辑和交互式设计器。
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.