ClickCreatingTool

StockSharp.Xaml.Diagram.GXDiagram.Tool

The ClickCreatingTool lets the user create a node by clicking where they want the new node to be.

Inherits: DiagramTool

Properties

DoubleClick
public bool DoubleClick { get; set; }
value = clickCreatingTool.DoubleClick
clickCreatingTool.DoubleClick = value

Gets or sets whether this tool requires a double-click to create a node at the click point.

PrototypeData
public object PrototypeData { get; set; }
value = clickCreatingTool.PrototypeData
clickCreatingTool.PrototypeData = value

Gets or sets a data value for a new node.

Methods

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

This tool can run when the diagram supports inserting nodes, the model is modifiable, and there is a click (or a double-click if DoubleClick is true).

DoMouseUp
public override void DoMouseUp()
clickCreatingTool.DoMouseUp()

Upon a click, call Point) and stop this tool.

InsertNode
public virtual void InsertNode(Point loc)
clickCreatingTool.InsertNode(loc)

Create a node by adding a copy of the PrototypeData to the diagram's model, and assign its Location to be the given point.

loc

Fields

DoubleClickProperty
public static readonly DependencyProperty DoubleClickProperty
value = ClickCreatingTool.DoubleClickProperty

Identifies the DoubleClick dependency property.

PrototypeDataProperty
public static readonly DependencyProperty PrototypeDataProperty
value = ClickCreatingTool.PrototypeDataProperty

Identifies the PrototypeData dependency property.