BlazorContextMenu icon indicating copy to clipboard operation
BlazorContextMenu copied to clipboard

a way to detect which mouse button triggered context menu

Open yeganehaym opened this issue 2 years ago • 1 comments
trafficstars

Is your feature request related to a problem? Please describe. Kind of, i wan two context menu on one item,one with left click and another with right click

Describe the solution you'd like a way to detect which mouse button triggered context menu so i can detect which items need to be shown

Describe alternatives you've considered configure more context menu

yeganehaym avatar Jun 04 '23 14:06 yeganehaym

You can use two different triggers (one right click on left) and pass different data

<ContextMenuTrigger MenuId="myMenu" Data="something" MouseButtonTrigger="MouseButtonTrigger.Left" >
  <ContextMenuTrigger MenuId="myMenu" Data="somethingElse" >
 ...
  </ContextMenuTrigger>
</ContextMenuTrigger>

stavroskasidis avatar Sep 20 '23 18:09 stavroskasidis