Skip to main content

FlowLayoutControl.AllowItemMoving Property

Gets or sets whether items are allowed to be moved to new positions via drag-and-drop. This is a dependency property.

Namespace: DevExpress.Xpf.LayoutControl

Assembly: DevExpress.Xpf.LayoutControl.v23.2.dll

NuGet Package: DevExpress.Wpf.LayoutControl

Declaration

public bool AllowItemMoving { get; set; }

Property Value

Type Description
Boolean

A Boolean value that specifies whether dragging-and-dropping items is enabled.

Remarks

If the AllowItemMoving property is set to true, an end-user is able to rearrange items via drag-and-drop.

Note that dragging-and-dropping an item is supported if the item doesn’t process mouse events itself.

You can turn a moving animation effect on/off using the FlowLayoutControl.AnimateItemMoving property. If the moving animation is enabled, after the moved item is released, a specified amount of time elapses before the item takes its new position. This time is stored in the FlowLayoutControl.ItemDropAnimationDuration field. The FlowLayoutControl.ItemMovingAnimationDuration property specifies how long the moving animation lasts.

See Also