RelinkingTool

StockSharp.Xaml.Diagram.GXDiagram.Tool

The RelinkingTool allows the user to reconnect an existing Link.

Inherits: LinkingBaseTool

Properties

Handle
protected FrameworkElement Handle { get; set; }
value = relinkingTool.Handle
relinkingTool.Handle = value

Gets or sets the relinking tool handle that the user is using (dragging).

Methods

CanStart
public override bool CanStart()
result = relinkingTool.CanStart()

This tool can run when the diagram allows relinking, the model is modifiable, and there is a relink handle at the mouse-down point.

DoActivate
public override void DoActivate()
relinkingTool.DoActivate()

Start the relinking operation.

DoDeactivate
public override void DoDeactivate()
relinkingTool.DoDeactivate()

Finishing the relinking operation stops the model edit and resets the cursor.

DoMouseUp
public override void DoMouseUp()
relinkingTool.DoMouseUp()

A mouse-up ends the relinking operation; if there is a valid TargetPort nearby, this calls Object) to delete the old link, and Object) to create the replacement link.

DoStop
public override void DoStop()
relinkingTool.DoStop()

Clean up tool state.

UpdateAdornments
public override void UpdateAdornments(Part part)
relinkingTool.UpdateAdornments(part)

Show an Adornment for each end of the Link that the user may reconnect.

part