BarOptions.DrawDragBorder Property
Gets or sets whether the bar can be dragged using the mouse.
Namespace: DevExpress.XtraBars
Assembly: DevExpress.XtraBars.v19.2.dll
Declaration
[XtraSerializableProperty]
[DefaultValue(true)]
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 |
|
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.
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the DrawDragBorder property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.