Topic Author
Posts: 35
Joined: 15 Jan 2020, 15:30

Button command on right click

17 May 2020, 17:18

Is there a way to execute a command on right clicking a button?

Something like
    <MouseBinding Gesture="RightClick" 
        Command="{Binding command }" 
        CommandParameter="{Binding param}"/>
doesn't work because MouseBinding doesn't seem to exist in Noesis. So what's the recommended way?
User avatar
Site Admin
Posts: 2262
Joined: 22 Dec 2011, 19:20

Re: Button command on right click

22 May 2020, 16:16

You can use an interactivity trigger reacting to MouseRightButtonDown:
    <i:EventTrigger EventName="MouseRightButtonDown">
      <i:InvokeCommandAction Command="{Binding command}" CommandParameter="{Binding param}"/>

Who is online

Users browsing this forum: No registered users and 3 guests