ResizeThumb
Provides a draggable table-boundary handle and the layout values used to apply row or column resizing.
Definition
Namespace:Telerik.WinControls.RichTextEditor.UI
Assembly:Telerik.WinControls.RichTextEditor.dll
Syntax:
public class ResizeThumb : FrameworkElement, IDisposable, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IStylableNode, ISupportDrop
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementUIElementFrameworkElementResizeThumb...
Implements:
Inherited Members
Constructors
public ResizeThumb()
Properties
Gets or sets movement accumulated from drag-delta events; the WPF row-resize path also adds the current vertical view offset.
public float AccumulatedDelta { get; set; }
Gets or sets the cell layout box associated with this handle.
public TableCellLayoutBox CellBox { get; set; }
Gets or sets the cursor shown while this handle is under the pointer.
public Cursor CursorType { get; set; }
Gets or sets whether this handle represents the table's left border rather than an internal column boundary.
public bool IsLeftBorder { get; set; }
Gets or sets the index used for an internal resize boundary; for the table's left border, index zero identifies the first resized column.
public int LeftColumnIndex { get; set; }
Gets or sets the width of the column to the left of an internal resize boundary, or the first column when resizing the table's left border.
public float LeftColumnWidth { get; set; }
Gets or sets the maximum canvas left used to constrain column-boundary dragging.
public double MaxCanvasLeft { get; set; }
Gets or sets the minimum canvas left used to constrain column-boundary dragging.
public double MinCanvasLeft { get; set; }
Gets or sets the minimum canvas top used to constrain row-boundary dragging.
public double MinCanvasTop { get; set; }
Gets or sets the current canvas coordinate of the resize boundary during a drag.
public double ResizeThumbDrag { get; set; }
Gets or sets the width of the column to the right of an internal resize boundary; left-border resizing does not use this value.
public float RightColumnWidth { get; set; }
Gets or sets the canvas coordinate of the resize boundary when dragging starts.
public float StartDragValue { get; set; }
Methods
Enables mouse input handling without forwarding that input to the parent element.
protected override void InitializeFields()
Overrides:
Raises DragCompleted with the drag's completion status.
protected virtual void OnDragCompleted(DragCompletedEventArgs e)
The completion status and displacement to report.
Raises DragDelta with the movement since the preceding update.
protected virtual void OnDragDelta(DragDeltaEventArgs e)
The horizontal and vertical movement reported by the drag.
Raises DragStarted with the drag-start pointer coordinates.
protected virtual void OnDragStarted(DragStartedEventArgs e)
The starting coordinates reported by the drag.
Captures the mouse and starts a drag when an idle handle receives a left-button press.
protected override void OnMouseDown(MouseEventArgs e)
The mouse input used to calculate the starting pointer coordinates.
Overrides:
Reports pointer movement during a drag and invalidates the parent so the resize preview can update.
protected override void OnMouseMove(MouseEventArgs e)
The current pointer position used to calculate the movement delta.
Overrides:
Releases mouse capture and reports a non-canceled completion when a drag is active.
protected override void OnMouseUp(MouseEventArgs e)
The mouse-release input.
Overrides:
Events
Occurs when the drag ends; this implementation reports zero displacement and a non-canceled completion.
public event EventHandler<DragCompletedEventArgs> DragCompleted
Occurs as the handle moves during a drag, reporting movement since the previous update.
public event EventHandler<DragDeltaEventArgs> DragDelta
Occurs when the left mouse button starts dragging this resize handle.
public event EventHandler<DragStartedEventArgs> DragStarted