Skip to main content
Bar

BarOptions.DrawDragBorder Property

Gets or sets whether the bar can be dragged using the mouse.

Namespace: DevExpress.XtraBars

Assembly: DevExpress.XtraBars.v24.2.dll

Declaration

[DefaultValue(true)]
[XtraSerializableProperty]
public virtual bool DrawDragBorder { get; set; }

Property Value

Type Default Description
Boolean true

true if the bar can be dragged; otherwise, false.

Property Paths

You can access this nested property as listed below:

Object Type Path to DrawDragBorder
Bar
.OptionsBar .DrawDragBorder

Remarks

Set the DrawDragBorder property to false to prevent the bar from being dragged. This property affects the bar both when it is docked, and when it is floating.

By default, when a bar is docked, it displays the drag widget at the bar’s left edge, which allows the end-user to drag the bar. Setting the DrawDragBorder property to false hides the drag widget.

Bars3_Bar_DragBorder

If the BarOptions.AllowCollapse property is set to true, double-clicking the drag widget collapses the bar. The BarOptions.ExpandAnimationDuration property specifies the time that the bar takes to collapse/expand.

See Also