This repository was archived by the owner on May 1, 2024. It is now read-only.
This repository was archived by the owner on May 1, 2024. It is now read-only.
[Enhancement] Support drag-and-drop reordering in CollectionView #4676
Closed
Description
Summary
Support drag-and-drop reordering in CollectionView
.
API Changes
public static readonly BindableProperty ReorderModeProperty;
public CollectionViewReorderMode ReorderMode { get; set; }
public enum CollectionViewReorderMode {
Disabled,
Enabled
}
When ReorderMode is set to Enabled, the view supports drag-and-drop reordering.
Upon dragging an item in the collection, the Move() method on the ObservableCollection<T>
is called to signal the change to the dataset.
Intended Use Case
Reordering a collection of elements ie. tasks, reminders, photos, tracks in a playlist etc.
Other Notes
-
Supported in iOS 9 and above+ in
UICollectionView
.
https://github.com/xamarin/ios-samples/tree/master/ios9/CollectionView -
Supported on Android in
RecyclerView
usingItemTouchHelper
. -
Supported on UWP in
GridView
usingCanReorderItems="true"
andReorderMode
.