private async Task OnDragDropAsync(TItem row, MouseEventArgs args) { if (DragContext != null) { await Drop.InvokeAsync(new DropEventArgs(row, DragContext.Payload, args.CtrlKey)).ConfigureAwait(true); } }
public async Task <object> OnDrop(DropZoneFile[] files) { var args = new DropZoneEventArgs(this, files); await Drop.InvokeAsync(args).ConfigureAwait(true); return(new { cancel = args.Cancel, reason = args.CancelReason, rootDir = args.BaseFolder, state = args.State, files }); }
/// <summary> /// Event handler for <see cref="Drop"/> event callback. /// </summary> /// <param name="eventArgs">Supplies information about an drag event that is being raised.</param> /// <returns>A task that represents the asynchronous operation.</returns> protected virtual Task OnDropHandler(DragEventArgs eventArgs) { return(Drop.InvokeAsync(eventArgs)); }
private async Task OnSeparatorDrop(DropEventArgs args) { var newArgs = new DropEventArgs(Node, args.Payload, args.Ctrl, args.Before); await Drop.InvokeAsync(newArgs).ConfigureAwait(true); }
private async Task OnDrop(DropEventArgs args) { await Drop.InvokeAsync(args).ConfigureAwait(true); }
private async Task OnDropAsync(MouseEventArgs args) { DragOver = false; var dropArgs = new DropEventArgs(this, DragContext?.Payload, args.CtrlKey, Before); await Drop.InvokeAsync(dropArgs).ConfigureAwait(true); }