Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

a way to detect which mouse button triggered context menu #139

Open
yeganehaym opened this issue Jun 4, 2023 · 1 comment
Open

a way to detect which mouse button triggered context menu #139

yeganehaym opened this issue Jun 4, 2023 · 1 comment

Comments

@yeganehaym
Copy link

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

@stavroskasidis
Copy link
Owner

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>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants