You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there any the fastest way to set overrided IModelValidator for all ViewModels and add all ViewModels in some ShellViewModel not like this default way:
public MainViewModel(SomeViewModel tab1, AnotherViewModel tab2,/*etc*/){//Adding items }
You're absolutely right, the tabs will be placed in the same order the classes are injected, but I have custom sorting for that. If someone wants to have a control over the ordering, you can order them in 'MainViewModel' constructor by either passing a custom 'IComparer' or adding some property you can OrderBy or select to the ITabItem interface. Also you can use IList methods to sort items. The default selected item will be the first one in the Items list (the same as in caliburn.micro tho). Question is resolved ofc.
Is there any the fastest way to set overrided IModelValidator for all ViewModels and add all ViewModels in some ShellViewModel not like this default way:
and not with (for every usercontrol viewmodel):
I mean the situation when there is alot of UserControls in Project.
The text was updated successfully, but these errors were encountered: