InputBindings mouse gestures missing?
Posted: 06 Oct 2017, 11:40
Greetings all,
following this Document https://www.noesisengine.com/docs/Gui.C ... orial.html, I want to implement a command reacting to a right click or left double click, as it is common in WPF.
However, while the code in line with the above mentioned example works
anything using a WPF like mouse binding (right click, double click) fails completely, the command method never ever gets called, neither using "MouseAction" nor "Gesture"
Is this functionality implemented at all? If not, how can I realize commands with mouse actions such as the above ones?
I do NOT want a MouseDblBlick="..." solution with dependency objects/properties....
Thanks in advance for assistance,
Andy
EDIT: Important is, that I need to bind to something else than a button, such as a StackPanel....
following this Document https://www.noesisengine.com/docs/Gui.C ... orial.html, I want to implement a command reacting to a right click or left double click, as it is common in WPF.
However, while the code in line with the above mentioned example works
Code: Select all
<ToggleButton Height="120" VerticalAlignment="Center" ...
Command="{Binding Path=MyMouseClickCommand}" CommandParameter="testtext"/>
Code: Select all
<ToggleButton Height="120" VerticalAlignment="Center" >
<ToggleButton.InputBindings>
<MouseBinding MouseAction="RightClick"
Command="{Binding Path=MyMouseRightClickCommand}"
CommandParameter="Bla"/>
</ToggleButton.InputBindings>
</ToggleButton>
I do NOT want a MouseDblBlick="..." solution with dependency objects/properties....
Thanks in advance for assistance,
Andy
EDIT: Important is, that I need to bind to something else than a button, such as a StackPanel....