Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

SizingEventArgs Class

Provides data for the DockManager.Sizing event.

Namespace: DevExpress.XtraBars.Docking

Assembly: DevExpress.XtraBars.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

public class SizingEventArgs :
    StartSizingEventArgs

#Remarks

The DockManager.Sizing event fires when the dock panel is being resized. The SizingEventArgs class provides properties that allow the processed dock panel, the edge of which is being dragged, and the current mouse pointer’s coordinates to be identified. Use the DockPanelCancelEventArgs.Cancel property to allow/prohibit resize operations. If this property is set to true, the DockManager.Sizing event fires but the panel’s size isn’t changed. This can be useful if it’s necessary to restrict end-users from changing the dock panel’s width or height.

SizingEventArgs objects are automatically created, initialized and passed to DockManager.Sizing event handlers.

See Also