Back to Devexpress

DockManager.Sizing Event

windowsforms-devexpress-dot-xtrabars-dot-docking-dot-dockmanager-ecbd1cb8.md

latest3.7 KB
Original Source

DockManager.Sizing Event

Fires when the dock panel is being resized.

Namespace : DevExpress.XtraBars.Docking

Assembly : DevExpress.XtraBars.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

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

Event Data

The Sizing event's data class is SizingEventArgs. 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.
NewSizeGets the dock panel’s new size.
PanelGets the processed dock panel. Inherited from DockPanelEventArgs.
PtClientGets the mouse pointer’s coordinates relative to the top-left corner of the control.
SidePanelReturns the panel that resizes together with the panel dragged by an end-user.
SizingSideGets the edge of the dock panel which is being dragged. Inherited from StartSizingEventArgs.

Remarks

Handle the Sizing event to perform actions while the dock panel is being resized. This event fires each time the panel’s width or height is changed by an end-user.

The event parameter’s DockPanelEventArgs.Panel property represents the dock panel being resized. The StartSizingEventArgs.SizingSide property represents the dock panel’s dragging edge. The SizingEventArgs.PtClient property specifies the current coordinates of the mouse pointer, in client coordinates. To cancel the operation set the DockPanelCancelEventArgs.Cancel property to true.

Refer to the Controlling Resizing Operations document for more information.

See Also

StartSizing

EndSizing

Controlling Resizing Operations

DockManager Class

DockManager Members

DevExpress.XtraBars.Docking Namespace