New to Telerik UI for WPFStart a free 30-day trial

Represents a tool which draws shapes over an image.

Definition

Constructors

Initializes a new instance of the ShapeTool class.

C#
public ShapeTool()

Properties

Gets whether the tool has made any changes on the image.

C#
public override bool IsDirty { get; }
Property Value:

Indicates is there any changes.

Overrides: ToolBase.IsDirty

Gets or sets the shapes.

C#
public ObservableCollection<IShape> Shapes { get; }
Property Value:

The shapes.

Methods

Draws a shape geometry.

C#
protected override void Draw(Point currentPoint)
Parameters:currentPointPoint

The current point related to the image.

Overrides: DrawToolBase.Draw(Point)

Ends the drawing of a geometry.

C#
protected override void EndDraw(Point currentPoint)
Parameters:currentPointPoint

The current point related to the image.

Overrides: DrawToolBase.EndDraw(Point)

Gets the tool' settings UI.

C#
public override UIElement GetSettingsUI()
Returns:

UIElement

The UI settings.

Overrides: ToolBase.GetSettingsUI()

Resets the tool' settings if the tool's IsResetSettingsSupported property is true.

C#
public override void ResetSettings()

Overrides: DrawToolBase.ResetSettings()

Sets properties to the path which contains the geometry which shall be drawn.

C#
protected override void SetPathProperties(Path path)
Parameters:pathPath

The path.

Overrides: DrawToolBase.SetPathProperties(Path)