background preloader

WPF+SL

Facebook Twitter

Microsoft Design .toolbox. View Model. Dll Shepherd.Net: Starting with MVVM (in Silverlight) For the past two weeks I have been working on both a new feature and converting the existing project to work with MVVM.

Dll Shepherd.Net: Starting with MVVM (in Silverlight)

Until now the XAML had code behind to handle all of the functionality and even for some stuff like combo box items we used code behind (where data binding would have been a lot easier). So where should you start? I found the best place to start is in a control/window that has simple actions. It is easy to just do the data binding without any care and a great stepping stone for other types of controls. For example lets implement the classic – CalcControl. The MVVM class: The Control: (Just binding the values TwoWay – important, the result – OneWay, and binding the Button to the command) Using it is as simple as: (in your page where CalcData is a property inside the MVVM class for the page) Or if you are still using code behind: calc.DataContext = new CalcViewModel(); The result (be warned it’s not pretty but it works): We are going to implement something like this: BusyMessage.cs:

MSDN Samples Gallery. Kung Fu Silverlight at PDC 2010: Patterns and Practices with MVVM and RIA Services - John Papa. Today you can watch my PDC 2010 session titled “Kung Fu Silverlight: Tips and Architectural Patterns and Practices”. Here is the summary of the session: Learn about the rewards of using RIA Services together with development patterns, such as the Service Providers, Single Responsibility pattern, Commanding, user Interactions, Messaging, ChildWindows, Design Time Data, Testing, and developing using the Model-View-ViewModel (MVVM) pattern, to build Silverlight and Windows Phone applications.

Hear the top tips you need to know for building data driven Silverlight applications that solve real world problems. The session covers quite a bit, and I plan on expanding on these topics in the near future on Silverlight TV and at the Silverlight Firestarter on Dec 2, 2010. The point I try to get across in this session is that you can build a Silverlight application using consistent patterns without having to be a rocket scientist.

Spoiler alert! Thanks! Like this: Like Loading... Data Driven Applications with MVVM Part III: Validation, Bringing the UI Closer. This article is compatible with the latest version of Silverlight.

Data Driven Applications with MVVM Part III: Validation, Bringing the UI Closer

Introduction In this short series of articles I’ll cover what MVVM is and how to use it in practice, how to solve issues when applying this pattern and how to take advantage from it. In the previous articles we created a simple master details scenario with the MVVM pattern. We used mock and live data sources with WCF, we created unit tests, we used Messaging from the MVVM Light Toolkit. By now, we have an application that communicates with a server, and we know how to send data back to a server.

Validation in MVVM Let’s think about this a little bit. You throw exceptions to validate in property setters…. well… yeah… You can’t support full entity validation. Well, in Silverlight 4 we have an IDataErrorInfo interface, that supports validation, without throwing exceptions. Nibblestutorials.net. Expression Blend / WPF Tutorials. Caliburn Micro - WPF, Silverlight and WP7 Made Easy. Code To Live. Live To Code. Shawn Wildermuth - Shawn Wildermuth's Blog. MVVM Light Toolkit. 分享Silverlight/WPF/Windows Phone一周学习导读(3月1日-3月5日) - jv9. 休假一个月,没有更新Silverlight/WPF/Windows Phone学习导读。

分享Silverlight/WPF/Windows Phone一周学习导读(3月1日-3月5日) - jv9

从本周开始继续分享每周最新的Silverlight/WPF/Windows Phone开发学习导读。 本周Silverlight学习资源更新: 本周WPF学习资源更新: 本周推荐学习书籍: Pro Expression Blend 4 Expression Blend是专业WPF/Silverlight的UI设计工具,该书详细讲解Expression Blend 4的使用方法以及应用开发指南,适合WPF和Silverlight以及Windows Phone应用开发人员参考阅读。 书籍下载 欢迎大家加入“专注Silverlight”QQ技术群,目前,1-9群都已经满员,新开500人十群,欢迎大家加入一起学习讨论Silverlight&WPF&Widnows Phone开发技术。 61267622(七群) 超级群500人 88585140(八群) 超级群500人 128043302(九群 企业应用开发推荐群) 高级群200人 101364438(十群) 超级群500人. 银光中国 Silverlight 资源 社区 论坛.