ToolService
The toolbox, this tells the application which tools are available.
Definition
Namespace:Telerik.Windows.Diagrams.Core
Assembly:Telerik.WinControls.RadDiagram.dll
Syntax:
public class ToolService : GraphServiceBase, IToolService, IMouseListener, IKeyboardListener
Inheritance: objectGraphServiceBaseToolService
Implements:
Constructors
Initializes a new instance of the ToolService class.
public ToolService(IGraphInternal graph, IGraphServiceLocator serviceLocator)
The graph.
serviceLocatorIGraphServiceLocatorThe service locator.
Properties
Gets the active tool.
public ITool ActiveTool { get; }
Implements:
Gets the graph.
public IGraphInternal Graph { get; }
Implements:
Gets or sets whether the alt-key is pressed.
public bool IsAltDown { get; set; }
Implements:
Gets or sets whether the control-key is pressed.
public bool IsControlDown { get; set; }
Implements:
public bool IsMouseDown { get; set; }
Implements:
Gets or sets the primary tool.
public string PrimaryTool { get; set; }
The primary tool.
Implements:
Gets the tools collection.
public ObservableCollection<ITool> ToolList { get; }
Methods
Activates the primary tool.
public void ActivatePrimaryTool()
Implements:
Handles the mouse double click event.
public bool MouseDoubleClick(PointerArgs e)
The PointerArgs instance containing the event data.
Returns:Implements:
Handles the mouse-down event.
public bool MouseDown(PointerArgs e)
The PointerArgs instance containing the event data.
Returns:Implements:
Handles the mouse-move event.
public bool MouseMove(PointerArgs e)
The PointerArgs instance containing the event data.
Returns:Implements:
Handles the mouse-up event.
public bool MouseUp(PointerArgs e)
The PointerArgs instance containing the event data.
Returns:Implements: