Composite views in MvvmCross -


i have wpf mvvm application i'd refactor use mvvmcross support wpf , mono android implementations.

our application's views consists of:

  • a toolbar visible
  • a navigation bar region
  • a main view region
  • a popup window region

each of these regions usercontrol on main application window , uiservice swaps out views in each region. in case of pop-up window, usercontrol on main window that's visibility changes on show or hide calls uiservice. uiservice accepts context parameter allows state information passed view model shown.

the main views typically composite of several child views. in these cases, main view model creates child view models exposed properties. main view sets these properties data context of child views.

i think mvvmcross support style composite views, couldn't find example of such. there relevant mvvmcross examples? recommended approach implementing in mvvmcross?

i think mvvmcross support style composite views, couldn't find example of such. there relevant mvvmcross examples? recommended approach implementing in mvvmcross?

this style of view isn't default 1 mobile apps - mobile apps page-based.

however, composite views becoming increasingly common in tablet apps - , mobile apps have exceptions - e.g. tabs, panoramas, flyouts, etc

to allow different kinds of display, each mvvmcross ui platform provides presenter can customise need to.

this presenter class can choose how want present viewmodels , views. also, it's c# class, can delegate responsibility many other objects wants to, allowing build increasingly complex patterns of panels, flyouts, tabs, embedded navigationstacks, etc.

for info on this, including links samples, see slide deck - https://speakerdeck.com/cirrious/presenters-in-mvvmcross

the wpf , ios twittersearch examples might place start on - https://github.com/slodge/mvvmcross-tutorials/tree/master/sample%20-%20twittersearch


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -