Back to Devexpress

FlowLayoutControl.AllowItemMoving Property

wpf-devexpress-dot-xpf-dot-layoutcontrol-dot-flowlayoutcontrol-f392aa7b.md

latest2.7 KB
Original Source

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.v25.2.dll

NuGet Package : DevExpress.Wpf.LayoutControl

Declaration

csharp
public bool AllowItemMoving { get; set; }
vb
Public Property AllowItemMoving As Boolean

Property Value

TypeDescription
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

AllowLayerSizing

AllowMaximizedElementMoving

ItemPositionChanged

AnimateItemMoving

ItemMovingAnimationDuration

ItemDropAnimationDuration

FlowLayoutControl Class

FlowLayoutControl Members

DevExpress.Xpf.LayoutControl Namespace