Class
ElementViewModel

Definition

Namespace:ArtOfTest.WebAii.Design.UI

Assembly:ArtOfTest.WebAii.Design.dll

Syntax:

cs-api-definition
public class ElementViewModel : INotifyPropertyChanged

Inheritance: objectElementViewModel

Implements: INotifyPropertyChanged

Constructors

ElementViewModel(ElementNode, IElementsExplorer, ElementViewModel)

Declaration

cs-api-definition
public ElementViewModel(ElementNode node, IElementsExplorer elementsExplorer, ElementViewModel parent)

Parameters

node

ElementNode

elementsExplorer

IElementsExplorer

parent

ElementViewModel

Fields

ElementNode

The element node

Declaration

cs-api-definition
public ElementNode ElementNode

Field Value

ElementNode

Properties

Children

Gets the children of the item.

Declaration

cs-api-definition
public ObservableCollection<ElementViewModel> Children { get; }

Property Value

ObservableCollection<ElementViewModel>

Image

Declaration

cs-api-definition
public GlyphIcon Image { get; }

Property Value

GlyphIcon

IsExpanded

Declaration

cs-api-definition
public bool IsExpanded { get; set; }

Property Value

bool

IsHighlighted

Declaration

cs-api-definition
public bool IsHighlighted { get; set; }

Property Value

bool

Name

Gets or sets the name of the item.

Declaration

cs-api-definition
public string Name { get; set; }

Property Value

string

Parent

Declaration

cs-api-definition
public ElementViewModel Parent { get; }

Property Value

ElementViewModel

ShowElementsValidation

Declaration

cs-api-definition
public bool ShowElementsValidation { get; set; }

Property Value

bool

Methods

OnPropertyChanged(string)

Declaration

cs-api-definition
protected void OnPropertyChanged(string propName)

Parameters

propName

string

RemoveFromParent()

Declaration

cs-api-definition
protected void RemoveFromParent()

ValidateName(string)

Declaration

cs-api-definition
public bool ValidateName(string value)

Parameters

value

string

Returns

bool

Events

PropertyChanged

Declaration

cs-api-definition
public event PropertyChangedEventHandler PropertyChanged

Event Value

PropertyChangedEventHandler

Implements INotifyPropertyChanged.PropertyChanged