生产质量 WPF 示例
当我学习 WPF 时,我遇到了相当多的示例,但大多数示例都带有“这不是生产质量代码”之类的免责声明,因为它们指的是他们正在解决的特定问题。
我想要的是了解 WPF 在现实生活中如何使用,整个应用程序,以便在一个示例中我可以看到工作中的所有最佳实践(绑定、资源文件、多语言、解决方案组织等......从基础到高级)。
你知道这样的例子吗?
As I'm learning WPF I came across quite a few examples, but mostly all of them have a disclamer like 'this is not production quality code', as they refer to a specific issue they're addressing.
What I would like is to see how is WPF used in reallife, the application as a whole, so that in one example I can see all of the best practices at work (binding, resource files, multilanguage, solution organisation, etc... from basic stuff to advanced).
Do you know of such examples?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我喜欢在 PRISM (CompositeWPF) 的参考实现 (StockTrader) 上学习 WPF
http://compositewpf.codeplex.com/
它基本上具有 WPF 如此强大的大部分优点,并且 Prism 是一个很棒的应用程序框架。
I liked learning WPF on the reference implementation (StockTrader) of PRISM (CompositeWPF)
http://compositewpf.codeplex.com/
It basically has most of the goods what makes WPF so powerful and prism is a great app framework.
我推荐的一个例子是 Josh Smith 关于 MVVM 的文章。 WPF 部分向您展示了如何处理 XAML 语法的不同方面,并且特别向您展示了您必须在后面(在本示例中的视图模型中)执行哪些操作才能使其正常工作。单元测试包含在解决方案中,这很好,因为它们在示例项目中经常被遗忘。
An example I would recommend is the code used in Josh Smith article about MVVM. The WPF parts shows you how to deal with different aspects of the XAML syntax, and it especially shows you what you have to do behind (in the view model, in this example) to make it work. Unit tests are included in the solution, which is nice, as they are often forgotten in example projects.