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