ITool
Represents an abstraction of a tool.
Definition
Namespace:Telerik.Windows.Media.Imaging.Tools
Assembly:Telerik.Windows.Controls.ImageEditor.dll
Syntax:
public interface ITool
Derived Classes:
Properties
Gets whether the tool is changing the image size.
bool AffectsLayout { get; }
Indicates whether a tool affects layout.
Gets whether the tool has made any changes on the image.
bool IsDirty { get; }
Indicates is there any changes.
Gets whether the tool has a preview overlay on the main image.
bool IsPreviewOverlay { get; }
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.
bool IsResetSettingsSupported { get; }
Methods
Attaches the UI. The method is invoked on tool's execution.
void AttachUI(ToolInitInfo previewInitInfo)
The preview init info.
Detaches the UI. The method is invoked when the tool execution is canceled.
void DetachUI()
Gets the tool's associated command.
Gets the tool's command context.
Gets the tool' settings UI.
UIElement GetSettingsUI()
UIElement
The UI settings.
Resets the tool' settings if the tool’s IsResetSettingsSupported property is true.
void ResetSettings()