Skip to main content

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

NavBarItem.CanDrag Property

Gets or sets a value specifying whether an item can be dragged.

Namespace: DevExpress.XtraNavBar

Assembly: DevExpress.XtraNavBar.v24.2.dll

NuGet Package: DevExpress.Win

#Declaration

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

#Property Value

Type Default Description
Boolean true

true if an item can be dragged; otherwise false.

#Remarks

Basically, the drag and drop behavior of the control is specified by the NavBarControl.DragDropFlags property. However, these settings can be overridden for each group via the group’s NavBarGroup.DragDropFlags property. An item can be dragged only if these settings allow item dragging and the CanDrag property is set to true. If either the control’s or group’s settings prohibit link drag operations, or the item’s CanDrag property value is false, the corresponding link cannot be dragged.

This property settings affect all links which refer to the item.

See Also