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 : bool
Gets or sets whether this tool requires a double-click to create a node at the click point.
PrototypeData : object
Gets or sets a data value for a new node.
Methods
CanStart() : bool
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()
Upon a click, call Point) and stop this tool.
InsertNode(Point)
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 : DependencyProperty
Identifies the DoubleClick dependency property.
PrototypeDataProperty : DependencyProperty
Identifies the PrototypeData dependency property.