NavBarGroup.DragDropFlags Property

Gets or sets a set of flags controlling the group's behavior as it relates to link drag and drop operations.

Namespace: DevExpress.XtraNavBar

Assembly: DevExpress.XtraNavBar.v20.1.dll


public virtual NavBarDragDrop DragDropFlags { get; set; }
Public Overridable Property DragDropFlags As NavBarDragDrop

Property Value

Type Default Description


A set of NavBarDragDrop enumeration values specifying a link's drag-and-drop options.


Use the DragDropFlags property to control the group's behavior as it relates to link drag and drop operations. It allows you to enable or disable automatic link dragging & dropping and dropping them from other NavBarControls.

Note that if the NavBarDragDrop.Default option is enabled, the group uses the drag and drop settings specified by the control's NavBarControl.DragDropFlags property. The NavBarGroup.GetDragDropFlags method returns the actual drag and drop settings for the group


The following sample code adjusts drag & drop options of the first group within the control. It enables dragging of this group's links and disables dropping links from other controls into this group. The NavBarGroup.DragDropFlags property is used for this purpose.

using DevExpress.XtraNavBar;
// ...
navBarControl1.Groups[0].DragDropFlags &= ~NavBarDragDrop.AllowOuterDrop;
navBarControl1.Groups[0].DragDropFlags |= NavBarDragDrop.AllowDrag;
See Also