ToolBase
Represents an abstraction of a tool.
Definition
Namespace:Telerik.Windows.Media.Imaging.Tools
Assembly:Telerik.Windows.Controls.ImageEditor.dll
Syntax:
public abstract class ToolBase : ITool
Inheritance: objectToolBase
Derived Classes:
Implements:
Constructors
protected ToolBase()
Properties
Gets whether the tool is changing the image size.
public abstract bool AffectsLayout { get; }
Indicates whether a tool affects layout.
Implements:
Gets whether the tool has made any changes on the image.
public abstract bool IsDirty { get; }
Indicates is there any changes.
Implements:
Gets whether the tool has a preview overlay on the main image.
public abstract bool IsPreviewOverlay { get; }
Indicates if a tool has a preview overlay.
Implements:
Specifies whether the settings of a tool can be reset. The common implementation of a tool returns true.
public virtual bool IsResetSettingsSupported { get; }
Indicates whether the settings can be reseted.
Implements:
Methods
Attaches the UI. The method is invoked on tool's execution.
public abstract void AttachUI(ToolInitInfo previewInitInfo)
The preview init info.
Implements:
Detaches the UI. The method is invoked when the tool execution is canceled.
public abstract void DetachUI()
Implements:
Gets the tool's associated command.
Gets the tool's command context.
Gets the tool' settings UI.
public abstract UIElement GetSettingsUI()
UIElement
The UI settings.
Implements:
Resets the tool' settings if the tool's IsResetSettingsSupported property is true.
public abstract void ResetSettings()
Implements: