Tales from the Smart Client

John Gossman's observations on Avalon development

But what about ValueConverters?

Chris mentions just using ValueConverters to adapt the Model to the View instead of this complex Model/View/ViewModel stuff.  I should have made it clear, the ViewModel contains ValueConverters.  If you can implement you UI using a set of ValueConverters alone, then that set of ValueConverters is your ViewModel.  But ValueConverters should not contain state, so if you have view state you'll need to push it either into the View, the Model or put it somewhere else.  We call that someplace else another part of the ViewModel...or as I mention in my last post, you can sub-divide that further.

Published Sunday, October 09, 2005 2:29 PM by JohnGossman

Comments

No Comments
New Comments to this post are disabled

© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Microsoft
Page view tracker