Skip to main content
Bar

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

BarOptions.DrawDragBorder Property

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

Namespace: DevExpress.XtraBars

Assembly: DevExpress.XtraBars.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#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