forked from reflection-emit/Cauldron
-
Notifications
You must be signed in to change notification settings - Fork 18
MVVM Navigator
Reflection Emit edited this page Dec 15, 2017
·
9 revisions
The Navigator handles the creation of new windows in a non-single-page application. This also includes the creation of modal pop-up that can return results. A viewmodel that is meant to return return result has to implement the IDialogViewModel interface.
The Navigator will also take care of creating the associated view of the viewmodel. There are several ways to associate a view to a viewmodel.
- Using the View attribute - You can directly specify in the ViewModel which view is to use. The ViewAttribute accepts System.Type and also contract names defined by ComponentAttribute.