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

Represents an abstraction of a tool.

Definition

Namespace:Telerik.Windows.Media.Imaging.Tools

Assembly:Telerik.Windows.Controls.ImageEditor.dll

Syntax:

C#
public abstract class ToolBase : ITool

Inheritance: objectToolBase

Derived Classes: BlurToolCanvasResizeToolCropToolDrawTextToolDrawToolBaseEffectToolBasePanToolResizeToolRoundCornersTool...

Implements: ITool

Constructors

C#
protected ToolBase()

Properties

Gets whether the tool is changing the image size.

C#
public abstract bool AffectsLayout { get; }
Property Value:

Indicates whether a tool affects layout.

Implements: ITool.AffectsLayout

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

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

Indicates is there any changes.

Implements: ITool.IsDirty

Gets whether the tool has a preview overlay on the main image.

C#
public abstract bool IsPreviewOverlay { get; }
Property Value:

Indicates if a tool has a preview overlay.

Implements: ITool.IsPreviewOverlay

Specifies whether the settings of a tool can be reset. The common implementation of a tool returns true.

C#
public virtual bool IsResetSettingsSupported { get; }
Property Value:

Indicates whether the settings can be reseted.

Implements: ITool.IsResetSettingsSupported

Methods

Attaches the UI. The method is invoked on tool's execution.

C#
public abstract void AttachUI(ToolInitInfo previewInitInfo)
Parameters:previewInitInfoToolInitInfo

The preview init info.

Implements: ITool.AttachUI(ToolInitInfo)

Detaches the UI. The method is invoked when the tool execution is canceled.

C#
public abstract void DetachUI()

Implements: ITool.DetachUI()

Gets the tool's associated command.

C#
public abstract IImageCommand GetCommand()
Returns:

IImageCommand

The command.

Implements: ITool.GetCommand()

Gets the tool's command context.

C#
public abstract object GetContext()
Returns:

object

The command context.

Implements: ITool.GetContext()

Gets the tool' settings UI.

C#
public abstract UIElement GetSettingsUI()
Returns:

UIElement

The UI settings.

Implements: ITool.GetSettingsUI()

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

C#
public abstract void ResetSettings()

Implements: ITool.ResetSettings()