Back to Devexpress

Bar.ShowDragWidget Property

wpf-devexpress-dot-xpf-dot-bars-dot-bar-f28f75b7.md

latest1.8 KB
Original Source

Bar.ShowDragWidget Property

Gets or sets whether a drag widget is displayed at the left of the bar, allowing the bar to be dragged using the mouse. This is a dependency property.

Namespace : DevExpress.Xpf.Bars

Assembly : DevExpress.Xpf.Core.v25.2.dll

NuGet Package : DevExpress.Wpf.Core

Declaration

csharp
public bool ShowDragWidget { get; set; }
vb
Public Property ShowDragWidget As Boolean

Property Value

TypeDescription
Boolean

true, if a drag widget is displayed at the left of the bar; otherwise, false.

|

Remarks

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 ShowDragWidget property to false hides the drag widget. This also prevents end-users from changing the bar position using drag-and-drop.

If the Bar.AllowCollapse property is set to true , double-clicking the drag widget collapses the bar.

Note

Drag widgets are only supported if bars are placed inside a BarContainerControl. Follow this topic to learn more about BarContainerControl.

See Also

AllowCollapse

Bar Class

Bar Members

DevExpress.Xpf.Bars Namespace