public async System.Threading.Tasks.Task RaiseContextMenu(Microsoft.AspNetCore.Components.Web.MouseEventArgs e) { if (ContextMenu.HasDelegate) { await OnContextMenu(e); } }
public virtual async Task OnContextMenu(Microsoft.AspNetCore.Components.Web.MouseEventArgs args) { await ContextMenu.InvokeAsync(args); }
public static Vector2 GetClientPos(this Microsoft.AspNetCore.Components.Web.MouseEventArgs e) { return(new Vector2(e.ClientX, e.ClientY)); }