C# Class Dev2.Studio.Core.ViewModels.Navigation.NavigationItemViewModelBase

Inheritance: Dev2.Studio.Core.ViewModels.Base.BaseViewModel
Mostrar archivo Open project: Warewolf-ESB/Warewolf Class Usage Examples

Public Methods

Method Description
GetChild ( bool>.Func predicate ) : NavigationItemViewModelBase

Tries to find a child recursively based on the provided predicate

GetChildCount ( bool>.Func predicate ) : long

Gets the number of children recursively based on the predicate

GetChildren ( bool>.Func predicate ) : List

Gets all children recursively that match the predicate

SilentlyCheck ( bool isChecked ) : void
UpdateChildCount ( ) : void

Signals the the child count properties should be manually updated

Protected Methods

Method Description
NavigationItemViewModelBase ( string name, string iconPath, NavigationItemViewModelBase parent, object dataContext, bool isExpanded = false, bool isSelected = false, bool>.Func childCountPredicate = null, bool isChecked = false ) : System
OnChecked ( ) : void

Method Details

GetChild() public method

Tries to find a child recursively based on the provided predicate
public GetChild ( bool>.Func predicate ) : NavigationItemViewModelBase
predicate bool>.Func
return NavigationItemViewModelBase

GetChildCount() public method

Gets the number of children recursively based on the predicate
public GetChildCount ( bool>.Func predicate ) : long
predicate bool>.Func
return long

GetChildren() public method

Gets all children recursively that match the predicate
public GetChildren ( bool>.Func predicate ) : List
predicate bool>.Func
return List

NavigationItemViewModelBase() protected method

protected NavigationItemViewModelBase ( string name, string iconPath, NavigationItemViewModelBase parent, object dataContext, bool isExpanded = false, bool isSelected = false, bool>.Func childCountPredicate = null, bool isChecked = false ) : System
name string
iconPath string
parent NavigationItemViewModelBase
dataContext object
isExpanded bool
isSelected bool
childCountPredicate bool>.Func
isChecked bool
return System

OnChecked() protected method

protected OnChecked ( ) : void
return void

SilentlyCheck() public method

public SilentlyCheck ( bool isChecked ) : void
isChecked bool
return void

UpdateChildCount() public method

Signals the the child count properties should be manually updated
public UpdateChildCount ( ) : void
return void