Base implementation of the IGraphSource which can be used to create an MVVM sources for RadDiagram.
Definition
Namespace:Telerik.Windows.Controls.Diagrams.Extensions.ViewModels
Assembly:Telerik.Windows.Controls.Diagrams.Extensions.dll
Type Parameters:
TNode
The data type of the node.
TLink
The data type of the link.
Syntax:
public class GraphSourceBase<TNode, TLink> : ViewModelBase, INotifyPropertyChanged, IDisposable, IGraphSource where TLink : ILink
Inheritance: objectViewModelBaseGraphSourceBase<TNode, TLink>
Derived Classes:
Implements:
Inherited Members
Constructors
Initializes a new instance of the GraphSourceBase<TNode, TLink> class.
public GraphSourceBase()
Properties
Gets the internal items collection.
public ObservableCollection<TNode> InternalItems { get; }
Gets the internal links collection.
public ObservableCollection<TLink> InternalLinks { get; }
Gets the node items.
public IEnumerable Items { get; }
Implements:
Gets the links or connections of this diagram source.
public IEnumerable<ILink> Links { get; }
Implements:
Methods
Adds the given link to this diagram source.
public virtual void AddLink(TLink link)
The link to add.
Adds a node (shape) to this diagram source.
public virtual void AddNode(TNode node)
The node to add.
Removes all items and links from this source.
public virtual void Clear()
Removes the item from the source.
Removes the link from this source.