ImageAdornerUI
Displays selection handles and previews for inline and floating images and reports completed image operations.
Definition
Namespace:Telerik.WinControls.RichTextEditor.UI
Assembly:Telerik.WinControls.RichTextEditor.dll
Syntax:
public class ImageAdornerUI : FrameworkElement, IDisposable, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IStylableNode, ISupportDrop, IInlineSelectionHandler
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementUIElementFrameworkElementImageAdornerUI...
Implements:
Inherited Members
Constructors
Initializes drag behavior for the image resize and rotation handles.
public ImageAdornerUI()
Properties
Gets whether ordinary drag handling is enabled for the current floating image; inline images are not draggable through this adorner. A matching stored mouse-down can still start the initial drag path while the selection is shown.
public bool CanDrag { get; }
Gets or sets whether the resize handles are visible for the current selection.
public bool CanResize { get; set; }
Gets or sets whether the rotation handle is visible for the current selection.
public bool CanRotate { get; set; }
Gets or sets the settings used to configure handles and operations when a different inline is selected.
public ImageSelectionAdornerSettings ImageSelectionAdornerSettings { get; set; }
Gets or sets the mouse-down event used to determine whether selecting a floating image should begin a drag.
public MouseButtonEventArgs LastMouseDownArgs { get; set; }
Methods
Creates the image border, operation handles, and preview visuals.
protected override void CreateChildElements()
Overrides:
Gets this adorner as the visual element associated with its inline selection handler.
Hides the adorner, ends any image drag, and clears the selected layout-box association.
public void HideSelection()
Implements:
Initializes the adorner as a hidden, non-autosized visual that handles mouse input.
protected override void InitializeFields()
Overrides:
Starts or stops floating-image dragging in response to a left-button press when dragging is enabled.
protected override void OnMouseDown(MouseEventArgs e)
The mouse event.
Overrides:
Updates the floating-image drag preview while dragging is active.
protected override void OnMouseMove(MouseEventArgs e)
The mouse event.
Overrides:
Ends an active floating-image drag and reports a move when its offset reaches the movement threshold.
protected override void OnMouseUp(MouseEventArgs e)
The mouse event.
Overrides:
Determines whether the stored mouse-down event hit the specified inline, allowing a floating-image drag to start.
Shows the adorner for an image inline or floating image block and sets operation flags from the settings and read-only state. A matching stored mouse-down can also trigger the initial floating-image drag path.
Events
Occurs when a floating-image drag ends with an offset of at least three units on either axis.
public event EventHandler<BlockMovedEventArgs> BlockMoved
Occurs when a resize-handle drag completes.
public event EventHandler<ImageResizedEventArgs> ImageResized
Occurs when a rotation-handle drag completes.
public event EventHandler<ImageRotatedEventArgs> ImageRotated