RadTabControl and MVVM
Posted
by Jeff
on Stack Overflow
See other posts from Stack Overflow
or by Jeff
Published on 2010-04-10T23:20:23Z
Indexed on
2010/04/10
23:23 UTC
Read the original article
Hit count: 758
First, so you know, Silverlight 4 and VS 2010 both RC and RIA services. I'm also new to Silverlight...
I have a page that has a Telerik RadTabControl on it. It will always have six tabs, i.e. the number of tabs is not data driven. The tabs are used for various admin functions. One tab for managing users with a grid and edit view, another that will have basic company info - just a few text boxes on it. The other tabs are similar to these two.
I'm trying to use MVVM and can't decide on the best approach. I don't think I want one big ViewModel that handles all six tabs - that would be big, ugly and harder to maintain. Any recommendations for approaches on how to break this out? Perhaps have a ViewModel for each tab? If so, how would I (generally) go about implementing something like that? Or is there another approach that makes more sense?
Thanks,
Jeff
© Stack Overflow or respective owner