Link

StockSharp.Xaml.Diagram.GXDiagram

A Link is a Part that represents a relationship between Nodes.

Hereda de: Part

Propiedades

ContainingGroups : IEnumerable<Group>

Get a collection of Groups of which this part is a member.

ContainingSubGraph : Group

Get the group Group that this part is a member of, if any.

FromData : object

Get the data object that this link is coming from.

FromNode : Node

Get the Node that corresponds to the FromData for this link.

FromPort : FrameworkElement

Get the FrameworkElement that corresponds to the FromPortId for this link.

FromPortId : string

Get the name of the port associated with the "from" end of this link.

LabelNode : Node

Gets the Node, if any, that is a label for this link.

LinkReshapeHandleTemplate : DataTemplate

Gets or sets the DataTemplate used by the LinkReshapingTool for each Route point's handle.

PartsModelFromNode : string

Gets or sets the identifier naming the "from" node for this link in a PartsModel.

PartsModelFromPortId : string

Gets or sets a particular value identifying the "from" port that this link is connected to.

PartsModelLabelNode : string

Gets or sets the identifier naming the "label" node for this link in a PartsModel.

PartsModelToNode : string

Gets or sets the identifier naming the "to" node for this link in a PartsModel.

PartsModelToPortId : string

Gets or sets a particular value identifying the "to" port that this link is connected to.

Path : Shape

Gets the Shape representing the path used to render the route of this link.

RelinkableFrom : bool

Gets or sets whether the user may reconnect the "from" end of this link.

RelinkableTo : bool

Gets or sets whether the user may reconnect the "to" end of this link.

RelinkFromAdornmentTemplate : DataTemplate

Gets or sets the DataTemplate used by the RelinkingTool when this part is selected.

RelinkToAdornmentTemplate : DataTemplate

Gets or sets the DataTemplate used by the RelinkingTool when this part is selected.

Route : Route

Gets or sets the Route implementing the path that this link will take.

ToData : object

Get the data object that this link is going to.

ToNode : Node

Get the Node that corresponds to the ToData for this link.

ToPort : FrameworkElement

Get the FrameworkElement that corresponds to the ToPortId for this link.

ToPortId : string

Get the name of the port associated with the "to" end of this link.

Métodos

CanRelinkFrom() : bool

This predicate is true if the user may reconnect the "from" end of this link.

Devuelve: Return true if this link is RelinkableFrom, if this link's layer's AllowRelink is true, and if this link's diagram's AllowRelink is true.

CanRelinkTo() : bool

This predicate is true if the user may reconnect the "to" end of this link.

Devuelve: Return true if this link is RelinkableTo, if this link's layer's AllowRelink is true, and if this link's diagram's AllowRelink is true.

GetAngle(UIElement) : double

The angle of any Link's VisualElement or Path is zero, however an element within the visual tree may have an angle.

elt
GetOtherNode(Node) : Node

Given a Node, return the node at the other end of this link.

node

Devuelve: This may return the same node, if the link is reflexive

GetOtherPort(FrameworkElement) : FrameworkElement

Given a FrameworkElement that is a "port", return the port at the other end of this link.

port

Devuelve: This may return the same element, if the link is reflexive

GetRoute(DependencyObject) : Route

Gets the value of the Route attached dependency property.

d
the root VisualElement
OnApplyTemplate()

Initialize the Route.

SetAngle(UIElement, double, Spot)

You cannot set the angle of the link's VisualElement or Path, since they must always be zero, but you can set the angle of other elements in the visual tree.

elt
angle
focus
SetRoute(DependencyObject, Route)

Sets the value of the Route attached dependency property.

d
the root VisualElement
v
ToString() : string

For convenience in debugging.

Campos

PartsModelFromNodeProperty : DependencyProperty

Identifies the PartsModelFromNode dependency property.

PartsModelFromPortIdProperty : DependencyProperty

Identifies the PartsModelFromPortId dependency property.

PartsModelLabelNodeProperty : DependencyProperty

Identifies the PartsModelLabelNode dependency property.

PartsModelToNodeProperty : DependencyProperty

Identifies the PartsModelToNode dependency property.

PartsModelToPortIdProperty : DependencyProperty

Identifies the PartsModelToPortId dependency property.

RouteProperty : DependencyProperty

Identifies the Route attached dependency property that must only be on the root VisualElement.