C# 클래스 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.
상속: BaseVM
파일 보기 프로젝트 열기: dsuryd/dotNetify-Nancy-demo

공개 메소드들

메소드 설명
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.

메소드 상세

CompositeViewVM() 공개 메소드

Constructor.
public CompositeViewVM ( ) : DotNetify
리턴 DotNetify

GetSubVM() 공개 메소드

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
리턴 BaseVM