Skip to main content

DockPanelOptions.ResizeDirection Property

Gets or sets the borders at which the current dock panel can be resized using the mouse.

Namespace: DevExpress.XtraBars.Docking

Assembly: DevExpress.XtraBars.v24.2.dll

Declaration

[DefaultValue(ResizeDirection.All)]
[XtraSerializableProperty]
public ResizeDirection ResizeDirection { get; set; }

Property Value

Type Default Description
DevExpress.XtraBars.Docking.Helpers.ResizeDirection All

A ResizeDirection enumeration value that specifies the borders at which the current dock panel can be resized using the mouse.

Property Paths

You can access this nested property as listed below:

Object Type Path to ResizeDirection
DockPanel
.Options .ResizeDirection

Remarks

When an end-user hovers over a border or corner of a dock panel with the mouse pointer, the pointer changes its view to a double-headed arrow indicating that the current panel can be resized. See the figure below.

DockManager_ResizeDirections

By default, a dock panel can be resized at all its borders and corners. The ResizeDirection property allows you to customize at which borders the current dock panel can be resized using the mouse. The ResizeDirection enumeration provides the Left, Right, Top and Bottom flags, each of which specifies that the dock panel can be resizes by dragging the corresponding panel border. Note that the ResizeDirection enumeration supports bitwise combinations of its flags. If a flag is not enabled, the mouse pointer does not change its view when it is hovered over the corresponding panel border, and the resize operation cannot be performed.

To manage the panel resizing feature in a centralized way, you can also handle the DockManager.CreateResizeZone event.

See Also