New to Telerik UI for WPF? Start a free 30-day trial

ITool

Interface

Represents an abstraction of a tool.

Definition

Properties

Gets whether the tool is changing the image size.

C#
bool AffectsLayout { get; }
Property Value:

Indicates whether a tool affects layout.

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

C#
bool IsDirty { get; }
Property Value:

Indicates is there any changes.

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

C#
bool IsPreviewOverlay { get; }
Property Value:

Indicates if a tool has a preview overlay.

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

C#
bool IsResetSettingsSupported { get; }

Methods

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

C#
void AttachUI(ToolInitInfo previewInitInfo)
Parameters:previewInitInfoToolInitInfo

The preview init info.

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

C#
void DetachUI()

Gets the tool's associated command.

C#
IImageCommand GetCommand()
Returns:

IImageCommand

The command.

Gets the tool's command context.

C#
object GetContext()
Returns:

object

The command context.

Gets the tool' settings UI.

C#
UIElement GetSettingsUI()
Returns:

UIElement

The UI settings.

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

C#
void ResetSettings()