right click on buttons
Hi
I'm trying to implement mouse right click functionality for a Button element
it works fine in Blend with:
But in Unity the bound function in the viewmodel does not get hit if I run it under the debugger
Does NG support the "RightClick" Gesture?
I'm trying to implement mouse right click functionality for a Button element
it works fine in Blend with:
Code: Select all
<Button.InputBindings>
<MouseBinding
Command="{Binding RightClickToRemoveItem}"
CommandParameter="Item1"
Gesture="RightClick" />
</Button.InputBindings>
Does NG support the "RightClick" Gesture?
-
-
sfernandez
Site Admin
- Posts: 3363
- Joined:
Re: right click on buttons
MouseBinding is still not implemented in Noesis: #1161. I'm gonna include it for the next release.
In the meantime you can use an interactivity EventTrigger to invoke a command in the same way:
In the meantime you can use an interactivity EventTrigger to invoke a command in the same way:
Code: Select all
<Button>
<b:Interaction.Triggers>
<b:EventTrigger EventName="MouseRightButtonDown">
<b:InvokeCommandAction Command="{Binding RightClickRemoveItem}" CommandParameter="Item1"/>
</b:EventTrigger>
</b:Interaction.Triggers>
</Button>Who is online
Users browsing this forum: Bing [Bot], sfernandez and 5 guests