wpf - Where should I put list of UserControls and not break MVVM? -


i have tab control each tabitem usercontrol. i'd hold usercontrols in tabcontrol's itemssource. itemssource list go in window's viewmodel? if so, feel it's breaking mvvm since viewmodel have gui controls within it. or put list in codebehind of window holds tab control?

any suggestions great!

with tab controls, more not individual tabs created statically in xaml rather @ run time data binding. there no reason why shouldn't this. if have collection of views, should stored in view.

bear in mind bind itemssource list of viewmodels objects , wpf generate view itemtemplate, viewmodel object set datacontext. collection of viewmodels should stored in view model, although @ point view model have stored in view.


Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

aspxgridview - Devexpress grid - header filter does not work if column is initially hidden -

c# - How to execute a particular part of code asynchronously in a class -