LinkViewModelBase<T>
A generic base class for the link or connection in a diagram source.
Definition
Namespace:Telerik.Windows.Controls.Diagrams.Extensions.ViewModels
Assembly:Telerik.Windows.Controls.Diagrams.Extensions.dll
Type Parameters:
T
A type inheriting from NodeViewModelBase.
Syntax:
public class LinkViewModelBase<T> : ItemViewModelBase, INotifyPropertyChanged, IDisposable, ILink<T>, ILink where T : NodeViewModelBase
Inheritance: objectViewModelBaseItemViewModelBaseLinkViewModelBase<T>
Implements:
Inherited Members
Constructors
Initializes a new instance of the LinkViewModelBase<T> class.
public LinkViewModelBase()
Initializes a new instance of the LinkViewModelBase<T> class.
public LinkViewModelBase(T source, T target)
The source.
targetTThe target.
Properties
Gets or sets the source of the connection.
public T Source { get; set; }
The source.
Implements:
Gets or sets the type of the source cap.
public CapType SourceCapType { get; set; }
The type of the source cap.
Gets or sets the target of this connection.
public T Target { get; set; }
The target.
Implements:
Gets or sets the type of the target cap.
public CapType TargetCapType { get; set; }
The type of the target cap.