Skip to content

EnableDragAndDrop at runtime with custom animations !

Compare
Choose a tag to compare
@roubachof roubachof released this 25 Jan 16:31
· 43 commits to main since this release
2651d56

NEW

  • EnableDragAndDrop is now a bindable property so drag and drop can be enabled and disabled at runtime
  • You can specify an animation for the drag and drop mode with the DragAndDropEnabledAnimationAsync property
  • You can decide to start the drag without long press on iOS thanks to the iOS specific property iOSDragAndDropOnPanGesture to true

Example

            HorizontalListView.DragAndDropEnabledAnimationAsync = async (viewCell, token) =>
            {
                while (!token.IsCancellationRequested)
                {
                    await viewCell.View.RotateTo(8);
                    await viewCell.View.RotateTo(-8);
                }

                await viewCell.View.RotateTo(0);
            };

enable_drag

Fixes

#17