Class
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:

cs-api-definition
public class LinkViewModelBase<T> : ItemViewModelBase, INotifyPropertyChanged, IDisposable, ILink<T>, ILink where T : NodeViewModelBase

Inheritance: objectViewModelBaseItemViewModelBaseLinkViewModelBase<T>

Implements: IDisposableILinkILink<T>INotifyPropertyChanged

Inherited Members ItemViewModelBase.VisibilityItemViewModelBase.PositionItemViewModelBase.ContentItemViewModelBase.IsSelectedViewModelBase.VerifyPropertyName(string)ViewModelBase.InvokeOnUIThread(Action)ViewModelBase.Dispose()ViewModelBase.RaisePropertyChanged(string)ViewModelBase.OnPropertyChanged(string)ViewModelBase.OnPropertyChanged<T>(Expression<Func<T>>)ViewModelBase.Dispose(bool)ViewModelBase.PropertyChanged

Constructors

LinkViewModelBase()

Initializes a new instance of the LinkViewModelBase<T> class.

Declaration

cs-api-definition
public LinkViewModelBase()

LinkViewModelBase(T, T)

Initializes a new instance of the LinkViewModelBase<T> class.

Declaration

cs-api-definition
[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

cs-api-definition
public T Source { get; set; }

Property Value

T

The source.

Implements ILink<T>.Source

SourceCapType

Gets or sets the type of the source cap.

Declaration

cs-api-definition
public CapType SourceCapType { get; set; }

Property Value

CapType

The type of the source cap.

Target

Gets or sets the target of this connection.

Declaration

cs-api-definition
public T Target { get; set; }

Property Value

T

The target.

Implements ILink<T>.Target

TargetCapType

Gets or sets the type of the target cap.

Declaration

cs-api-definition
public CapType TargetCapType { get; set; }

Property Value

CapType

The type of the target cap.