Provides the shared interaction state and mouse handling for Details-view column resizing.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public abstract class BaseColumnResizingBehavior
Inheritance: objectBaseColumnResizingBehavior
Derived Classes:
Constructors
Creates a resize behavior for the specified list-view element.
public BaseColumnResizingBehavior(RadListViewElement owner)
The element whose columns and mouse interaction are managed.
Fields
Stores the last mouse position used to calculate the next resize offset.
protected Point lastMousePosition
Stores the mouse cursor that must be restored when a resize operation ends.
protected Cursor originalMouseCursor
Properties
Gets or sets whether a resize operation is in progress.
public bool IsResizing { get; set; }
Gets the list-view element whose columns this behavior manages.
public RadListViewElement Owner { get; }
The owning element.
Gets or sets the column currently being resized.
public ListViewDetailColumn ResizedColumn { get; set; }
The active column, or null when no column is being resized.
Methods
Begins resizing the specified column when resizing is enabled and the owner is in Details view.
public virtual bool BeginResize(ListViewDetailColumn column, Point mousePosition)
The column to resize.
mousePositionPointThe current mouse position used as the resize baseline.
Returns:Calculates the column widths.
public abstract void CalculateColumnWidths(SizeF availableSize)
Size of the available.
Ends resizing, releases mouse capture, clears the active column, and restores the prior cursor.
public virtual void EndResize()
Converts mouse movement into a resize offset, reversing it for right-to-left layouts.
public virtual void HandleMouseMove(Point mousePosition)
The current mouse position.
Applies a horizontal offset to the active resize operation.
public abstract bool Resize(int offset)
The signed width change requested by mouse movement.
Returns:Whether the offset was accepted. HandleMouseMove(Point) uses this result to decide whether to advance its stored mouse position.