Skip to main content
A newer version of this page is available. .

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.v19.1.dll

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.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the AllowItemMoving property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also