Recommended

  • Silverlight.FX
    Silverlight.FX is a light-weight application framework for building RichInternet Applications with Silverlight 2.
  • Building Modular Silverlight Applications
  • Prism -  10 Things to Know
  • Securing Silverlight Application and WCF Service using ASP.Net Authentication Techniques
  • Model– View – ViewModel in Silverlight

Silverlight Hosting

Skip Navigation LinksHome / News / View News

The Mini-ViewModel Pattern

+ Add to SilverlightShow Favorites
0 comments   /   posted by Silverlight Show on Aug 10, 2009
(0 votes)
Tags: View Models , DataContext , Binding , MVVM , WPF

The construction of a ViewModel is often the standard technique for solving binding problems within Silverlight. However, the addition of a ViewModel adds complexity to your code. In this post Colin Eberhardt describes an alternative method where a mini-ViewModel is applied directly to the problem areas in the view, leaving the rest to use simpler binding to business objects.

One of the features of WPF / Silverlight that appealed to me immediately when I started to learn it was the flexibility of the binding framework. The concepts of DataContext inheritence and flexibility of the value converters results in a lot less glue-code, which makes me a happy developer! However, it does not take long before you start finding examples that just dont fit with the framework and things start to get just little more complex. This blog post describes one such example.

Share


Comments

Comments RSS RSS
No comments

Add Comment

 
 

   
  
  
   
Please add 3 and 2 and type the answer here: