I’m making an mvvm utility for the uwp platform and I’m on the lookout for recommendation on the next matter.
Take for instance the home windows 10 e-mail utility, which when full display screen shows each the e-mail listing and e-mail content material in a single web page, whereas in smaller kind components the content material is displayed in separate pages.
What’s one of the simplest ways to correlate views with viewmodels on this state of affairs?
My ideas are
A giant view mannequin which would be the information context for all of the views on this state of affairs.
Two view fashions, one for the e-mail listing and one for the e-mail content material, set as the info context for various components of the web page or totally different pages.
Three view fashions. The 2 view fashions from the earlier level and one other one to coordinate them.
What do you assume is greatest?
My drawback principally stems from the truth that in a single case you truly navigate to a different web page, and must put logic in navigation occasions that do not exist within the different case.