ClassLinkViewModelBase<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
LinkViewModelBase()
Initializes a new instance of the LinkViewModelBase<T> class.
Declaration
public LinkViewModelBase()
LinkViewModelBase(T, T)
Initializes a new instance of the LinkViewModelBase<T> class.
Declaration
[SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
public LinkViewModelBase(T source, T target)
Parameters
source
T
The source.
target
T
The target.
Properties
Source
Gets or sets the source of the connection.
Declaration
public T Source { get; set; }
Property Value
T
The source.
Implements
SourceCapType
Gets or sets the type of the source cap.
Declaration
public CapType SourceCapType { get; set; }
Property Value
The type of the source cap.
Target
Gets or sets the target of this connection.
Declaration
public T Target { get; set; }
Property Value
T
The target.
Implements
TargetCapType
Gets or sets the type of the target cap.
Declaration
public CapType TargetCapType { get; set; }
Property Value
The type of the target cap.