ClassDrawingToolBase
Abstract base class for tools which draw something on the canvas.
Definition
Namespace:Telerik.Windows.Diagrams.Core
Assembly:Telerik.Windows.Diagrams.Core.dll
Syntax:
public abstract class DrawingToolBase : PrimaryMouseToolBase, ITool, IMouseListener, IKeyboardListener
Inheritance: objectToolBasePrimaryMouseToolBaseDrawingToolBase
Derived Classes:
Implements:
Inherited Members
Constructors
DrawingToolBase(string)
Initializes a new instance of the DrawingToolBase class.
Properties
AddShapeCommand
Gets or sets the ICommand for adding a shape to the diagram.
Declaration
protected CompositeCommand AddShapeCommand { get; set; }
Property Value
ControllerService
Gets the IControllerService service.
Declaration
public IControllerService ControllerService { get; }
Property Value
DrawingService
Gets the IDrawingService service.
Declaration
public IDrawingService DrawingService { get; }
Property Value
UndoRedoService
Gets the IUndoRedoService service.
Declaration
public IUndoRedoService UndoRedoService { get; }
Property Value
Methods
CompleteTool()
Completes the action of this tool.
Declaration
public virtual void CompleteTool()
CreateShape()
Creates a shape.
KeyDown(KeyArgs)
Handles the key down event.
MouseDown(PointerArgs)
Handles the mouse-down event.
Declaration
public override bool MouseDown(PointerArgs e)
Parameters
e
The PointerArgs instance containing the event data.
Returns
Overrides
OnDeactivated()
Called when tool is IsActive is changed to false.
Declaration
protected override void OnDeactivated()
Overrides
UndoToolAction()
Undoes what this tool has performed.
Declaration
public virtual void UndoToolAction()