Back to Devexpress

BarOptions.DrawDragBorder Property

windowsforms-devexpress-dot-xtrabars-dot-baroptions-b84c9607.md

latest2.4 KB
Original Source

BarOptions.DrawDragBorder Property

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

Namespace : DevExpress.XtraBars

Assembly : DevExpress.XtraBars.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DefaultValue(true)]
[XtraSerializableProperty]
public virtual bool DrawDragBorder { get; set; }
vb
<XtraSerializableProperty>
<DefaultValue(True)>
Public Overridable Property DrawDragBorder As Boolean

Property Value

TypeDefaultDescription
Booleantrue

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

|

Property Paths

You can access this nested property as listed below:

Object TypePath 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.

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

DockStyle

ExpandAnimationDuration

BarOptions Class

BarOptions Members

DevExpress.XtraBars Namespace