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.v24.2.dll
NuGet Package: DevExpress.Win
#Declaration
#Property Value
Type | Default | Description |
---|---|---|
Nav |
Default | A set of Nav |
Available values:
Name | Description |
---|---|
None | If active, disables all other options. Drag-and-drop operations are prohibited for a control/group in such a case. |
Default | If active for a Nav |
Allow |
If active for a Nav |
Allow |
If active for a Nav |
Allow |
If active for a Nav |
#Remarks
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
#Example
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;