Пример #1
0
        private async Task OnDroppedCanceled()
        {
            dragging = false;

            await DragEnded.InvokeAsync(Item);

            await InvokeAsync(StateHasChanged);
        }
Пример #2
0
        private async Task OnDragEndHandler(DragEventArgs e)
        {
            if (dragging)
            {
                dragging = false;

                await ParentContainer?.CancelTransaction();
            }
            else
            {
                await DragEnded.InvokeAsync(Item);
            }
        }