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

FlowLayoutProperties.ItemDragMode Property

Gets or sets the widget drag mode for this WidgetView.

Namespace: DevExpress.XtraBars.Docking2010.Views.Widget

Assembly: DevExpress.XtraBars.v24.2.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