Provides the resize functionality for RadLayoutControl.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class LayoutControlResizingBehavior
Inheritance: objectLayoutControlResizingBehavior
Constructors
Creates a resize behavior for the specified layout container.
public LayoutControlResizingBehavior(LayoutControlContainerElement owner)
The container whose layout tree is resized.
Properties
Indicates whether the behavior is currently active.
public bool IsResizing { get; }
Methods
Begins the resize operation given a LayoutControlSplitterItem.
public bool BeginResize(LayoutControlSplitterItem splitter)
The splitter item.
Returns:[true] if successful, [false] otherwise.
Begins the resize operation given a starting point and resize orientation.
public bool BeginResize(Point point, Orientation resizeType)
The starting point.
resizeTypeOrientationThe resize direction.
Returns:[true] if successful, [false] otherwise.
Ends the resize operation.
public void EndResize()
Gets the mouse cursor that should be displayed at the specified position.
public Cursor GetCursorAtPoint(Point point)
The point in coordinates relative to the owning LayoutControlContainerElement.
Returns:The cursor.
Raises Resized after the active splitter moves.
protected virtual void OnResized()
Raises ResizeFinished after an active resize ends and the current layout positions are recorded as the new original bounds.
protected virtual void OnResizeFinished()
Raises ResizeStarted after a resize operation becomes active.
protected virtual void OnResizeStarted()
If the behavior is active, moves the resize position to the specified point.
public void Resize(Point point)
The point in coordinates relative to the owning LayoutControlContainerElement.
Events
Occurs after the splitter position changes during an active resize.
public event EventHandler Resized
Occurs after an active resize ends and the current layout bounds are recorded as the new original bounds.
public event EventHandler ResizeFinished
Occurs when a resize operation successfully begins.
public event EventHandler ResizeStarted