NavBarControl.DragDropFlags Property
Gets or sets a set of flags controlling the control’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 |
Allow |
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 NavBarControl‘s behavior as it relates to link drag and drop operations. It allows you to enable or disable automatic link drag and drop actions and dropping them from other NavBarControl controls.
Each group can override the control’s settings concerning links drag and drop. Use the NavBarGroup.DragDropFlags property for this purpose. The desired NavBarGroup object can be obtained via the NavBarControl.Groups property.
Note that the NavBarDragDrop.Default option implies that the NavBarDragDrop.AllowDrag and NavBarDragDrop.AllowDrop options are enabled while other options are disabled. The NavBarControl.GetDragDropFlags method returns the corrected NavBarControl.DragDropFlags
property value.
#Example
the following sample code uses the NavBarControl.DragDropFlags
property to modify the control’s drag and drop options. It prohibits dropping items from the same control and allows you to drop items from other NavBarControl.
using DevExpress.XtraNavBar;
// ...
navBarControl1.DragDropFlags &= ~NavBarDragDrop.AllowDrop;
navBarControl1.DragDropFlags |= NavBarDragDrop.AllowOuterDrop;