Back to Devexpress

DockManager.StartSizing Event

windowsforms-devexpress-dot-xtrabars-dot-docking-dot-dockmanager-966f73d4.md

latest3.2 KB
Original Source

DockManager.StartSizing Event

Enables specifying whether end-users can resize the dock panels.

Namespace : DevExpress.XtraBars.Docking

Assembly : DevExpress.XtraBars.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DXCategory("Docking")]
public event StartSizingEventHandler StartSizing
vb
<DXCategory("Docking")>
Public Event StartSizing As StartSizingEventHandler

Event Data

The StartSizing event's data class is StartSizingEventArgs. The following properties provide information specific to this event:

PropertyDescription
CancelGets or sets whether the operation performed on the processed panel should be cancelled. Inherited from DockPanelCancelEventArgs.
PanelGets the processed dock panel. Inherited from DockPanelEventArgs.
SizingSideGets the edge of the dock panel which is being dragged.

Remarks

End-users can resize dock panels by dragging their borders. The StartSizing event fires immediately after an end-user has pressed the mouse button while the mouse cursor is located over a panel’s border.

The event parameter’s DockPanelEventArgs.Panel property identifies the panel which is about to be resized. The StartSizingEventArgs.SizingSide property represents the dock panel’s dragging edge. To cancel the resizing operation before it’s started set the event’s DockPanelCancelEventArgs.Cancel parameter to true.

Refer to the Controlling Resizing Operations document for more information.

See Also

Sizing

EndSizing

Controlling Resizing Operations

DockManager Class

DockManager Members

DevExpress.XtraBars.Docking Namespace