Class ContainerNodeViewModelBase<TNode>
Base class for MVVM container nodes.
Inheritance
System.Object
ContainerNodeViewModelBase<TNode>
Inherited Members
Namespace: Telerik.Windows.Controls.Diagrams.Extensions.ViewModels
Assembly: Telerik.Windows.Controls.Diagrams.Extensions.dll
Syntax
public class ContainerNodeViewModelBase<TNode> : NodeViewModelBase, INotifyPropertyChanged, IDisposable, IContainerItem
Type Parameters
TNode
The type of the node. |
Constructors
ContainerNodeViewModelBase()
Initializes a new instance of the ContainerNodeViewModelBase class.
Declaration
public ContainerNodeViewModelBase()
Properties
InternalItems
Gets the internal items collection.
Declaration
public ObservableCollection<TNode> InternalItems { get; }
Property Value
System.Collections.ObjectModel.ObservableCollection<TNode>
|
Methods
AddItem(Object)
Adds the item to its children.
Declaration
public virtual bool AddItem(object item)
Parameters
System.Object
item
|
Returns
System.Boolean
|
Implements
RemoveItem(Object)
Removes the item from its children.
Declaration
public virtual bool RemoveItem(object item)
Parameters
System.Object
item
|
Returns
System.Boolean
|
Implements
Explicit Interface Implementations
IContainerItem.Items
Gets the items.
Declaration
IEnumerable IContainerItem.Items { get; }
Returns
System.Collections.IEnumerable
|