C# Класс ExamplesLibrary.TreeViewVM

This view model demonstrates how to do lazy-loading on a deep tree without storing anything in the view model.
Наследование: BaseVM
Показать файл Открыть проект

Открытые методы

Метод Описание
OnUnresolvedUpdate ( string iVMPath, string iValue ) : void

Override this method to implement custom resolver for the value update coming from the browser. VMController doesn't know how to handle a deep tree property path, so we are handling it here.

Защищенные методы

Метод Описание
LoadTreeItem ( int iId ) : TreeItem

Loads a tree item from an employee record.

Приватные методы

Метод Описание
ExpandToSelection ( TreeItem &iRoot ) : void

Expands the root tree item to the currently selected item.

GetRoot ( ) : TreeItem

Gets the root tree item.

Описание методов

LoadTreeItem() защищенный Метод

Loads a tree item from an employee record.
protected LoadTreeItem ( int iId ) : TreeItem
iId int Identifies the record.
Результат TreeItem

OnUnresolvedUpdate() публичный Метод

Override this method to implement custom resolver for the value update coming from the browser. VMController doesn't know how to handle a deep tree property path, so we are handling it here.
public OnUnresolvedUpdate ( string iVMPath, string iValue ) : void
iVMPath string View model path.
iValue string Value sent by the browser.
Результат void