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
Datei anzeigen Open project: dsuryd/dotNetify-Nancy-demo

Public Methods

Method 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 method

Constructor.
public CompositeViewVM ( ) : DotNetify
return DotNetify

GetSubVM() public method

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
return BaseVM