Skip to main content

FlowLayoutProperties.ItemDragMode Property

Gets or sets the widget drag mode for this WidgetView.

Namespace: DevExpress.XtraBars.Docking2010.Views.Widget

Assembly: DevExpress.XtraBars.v24.1.dll

NuGet Package: DevExpress.Win.Navigation

Declaration

[DefaultValue(ItemDragMode.Move)]
[XtraSerializableProperty(XtraSerializationFlags.DefaultValue)]
public ItemDragMode ItemDragMode { get; set; }

Property Value

Type Default Description
DevExpress.XtraBars.Docking2010.Views.Widget.ItemDragMode Move

A DevExpress.XtraBars.Docking2010.Views.Widget.ItemDragMode enumerator value that specifies the widget drag mode for this WidgetView.

Remarks

Widgets within a Flow Layout WidgetView can be moved in two ways, depending on the ItemDragMode property value.

  • Move mode (default behavior) - end-user can drop a widget before or after any other widget. This causes other widgets to slide forward or backward to create space for the dragged widget.
  • Swap mode - end-user can drop a widget upon another widget, which will cause these widgets to swap their positions.

See the Widget View topic to learn more.

See Also