New to Telerik UI for WPFStart a free 30-day trial

LinkViewModelBase

Updated on Oct 1, 2025

Telerik Diagramming Framework provides a list of ViewModels defined in the Telerik.Windows.Controls.Diagrams.Extensions.dll.

This article describes the LinkViewModelBase defined in the Diagramming Extensions.

Overview

The LinkViewModelBase class is a ViewModel designed to serve as a base ViewModel for RadDiagramConnections in a data-bound RadDiagram. As the connection can start from one shape and end in another one, the LinkViewModelBase class is defined to expose properties that track these source and target shapes.

Essentially the LinkViewModelBase derives from ItemViewModelBase and therefore the class exposes all properties defined in the ItemViewModelBase class. Moreover, the LinkViewModelBase class inherits the ILink interface, where T should derive from NodeViewModelBase

LinkViewModelBase Inheritance Model raddiagram-data-linkviewmodel

Constructors

NameDescription
LinkViewModelBase()Initializes a new instance of the LinkViewModelBase class that represents a link on the diagramming surface.
LinkViewModelBase(T source, T target)Initializes a new instance of the LinkViewModelBase class that represents a link starting from the specified source node and ending at the specified target node.

Properties

The LinkViewModelBase class exposes the following properties:

Properties:

NameDescription
SourceGets or sets the source of the connection which should be of type deriving from NodeViewModelBase.
TargetGets or sets the target of the connection which should be of type deriving from NodeViewModelBase.
SourceCapTypeGets or sets the CapType of the start of the represented connection.
TargetCapTypeGets or sets the CapType of the end of the represented connection.

Inherited Properties:

NameDescription
VisibilityGets or sets the Visibility of the represented connection. The property is of type Visibility.
PositionGets or sets the coordinates of a Point that represents the position of a connection.
ContentGets or sets an object that represents the content of the represented connection.
IsSelectedGets or sets a Boolean value indicating whether the represented connection is selected.

See Also