C# Class ExamplesLibrary.CompositeViewVM

This examples demonstrates how to compose a view from multiple sub-views that can communicate with each other. The CompositeViewVM is the master view model composed of two subordinate view models, GridViewVM and TreeViewVM. The master view model doesn't have any view, its only purpose is to manage its sub view models, which includes instantiation and enabling the communication through Observer pattern.
Inheritance: BaseVM
Afficher le fichier Open project: dsuryd/dotNetify-Nancy-demo

Méthodes publiques

Méthode Description
CompositeViewVM ( ) : DotNetify

Constructor.

GetSubVM ( string iVMTypeName ) : BaseVM

Override this method to allow the master view model handles instantiation of its sub view models. This is needed if the master VM needs to perform initialization on its sub VMs prior to binding with the views.

Method Details

CompositeViewVM() public méthode

Constructor.
public CompositeViewVM ( ) : DotNetify
Résultat DotNetify

GetSubVM() public méthode

Override this method to allow the master view model handles instantiation of its sub view models. This is needed if the master VM needs to perform initialization on its sub VMs prior to binding with the views.
public GetSubVM ( string iVMTypeName ) : BaseVM
iVMTypeName string
Résultat BaseVM