Provides the scrollable command list and file/history buttons for a RadImageEditor.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class ImageEditorCommandsElement : LightVisualElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IBindableComponent, IComponent, IDisposable, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IDrawFillElement, IImageElement, ITextPrimitive, ITextProvider
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementRadComponentElementRadItemUIItemBaseLightVisualElementImageEditorCommandsElement...
Implements:
Inherited Members
Constructors
Initializes the command surface for the specified editor and subscribes to localization-provider changes.
public ImageEditorCommandsElement(RadImageEditorElement owner)
The image editor that receives the command actions.
Properties
Gets the scrollable viewport containing the transform, adjustment, and effects commands.
public RadStackViewport CommandsStackElement { get; }
Gets the editor that receives the command actions.
public RadImageEditorElement ImageEditorElement { get; }
Gets the button that opens an image in the associated editor.
public RadButtonElement OpenButton { get; }
Gets the button that reapplies an undone image state.
public RadButtonElement RedoButton { get; }
Gets the button that saves the current image under a selected file name.
public RadButtonElement SaveButton { get; }
Gets the horizontal stack containing the open, save, undo, and redo buttons.
public StackLayoutElement TopCommandsStackElement { get; }
Gets the button that restores the previous image state.
public RadButtonElement UndoButton { get; }
Methods
Creates the horizontal stack that contains the file and history buttons.
protected virtual StackLayoutElement CraeteTopCommandsStackElement()
The top command row.
Creates the top command row, scrollable command viewport, and editor actions.
protected override void CreateChildElements()
Overrides:
Creates the transform, adjustment, and effects commands and connects them to editor operations.
protected virtual void CreateCommands()
Creates a vertically oriented viewport for the editor commands.
protected virtual RadStackViewport CreateCommandsStackViewport()
The viewport that contains the command groups and actions.
Creates the physical-scrolling viewer used for the command list without a visible border or fill.
protected virtual RadScrollViewer CreateScrollViewer()
The viewer that hosts the command viewport.
Adds the open, save, undo, and redo buttons to the top command row.
protected virtual void CreateTopCommands()
Removes the commands from the scrollable viewport.
protected virtual void DisposeCommands()
Unsubscribes from localization-provider changes before disposing managed resources.
protected override void DisposeManagedResources()
Overrides:
Refreshes command labels and tooltips from the current image-editor localization provider.
protected virtual void LocalizeCommands()
Loads theme-specific icons after the command elements are attached to a control.
protected override void OnLoaded()
Overrides:
Assigns theme-specific icons to the file, history, transform, adjustment, and effects commands.
public virtual void SetCommandIcons()