FlowLayoutControl.ItemPositionChanged Event
Fires when an item is moved to a new position.
Namespace: DevExpress.Xpf.LayoutControl
Assembly: DevExpress.Xpf.LayoutControl.v20.2.dll
NuGet Packages: DevExpress.WindowsDesktop.Wpf.LayoutControl, DevExpress.Wpf.Layout
Declaration
Event Data
The ItemPositionChanged event's data class is ValueChangedEventArgs<Int32>. The following properties provide information specific to this event:
Property | Description |
---|---|
NewValue | Gets an object that represents the new value of a specific property. |
OldValue | Gets an object that represents the old value of a specific property. |
Remarks
Items can be moved to a new position via drag-and-drop, provided that the FlowLayoutControl.AllowItemMoving property is set to true. The ItemPositionChanged event fires after an item has been moved. The event’s parameters allow you to identify the item’s old and new positions.
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ItemPositionChanged event.
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.