wpf - Make ListView ignore rightclick totally -


I'm just coding some global gesture handlers for a wpf application. For example, I want to use the correct click as a trigger to push the UI

   & Lt; /Window.InputBindings>  

But now the problem is that & lt; ListBox / & gt; Uses all mouse button events I did some research but it did not find an easy way to make the unknown about the right button. Has anyone ever had this problem and got a solution? thank you in advanced.

You should be able to prevent the list box from being consumed by mouse clicks:

& lt; List box & gt; & Lt; ListBox.InputBindings & gt; & Lt; Mousebudding MouseAction = "RightClick" Command = "App Commands.Notcom" /> & Lt; /ListBox.InputBindings> & Lt; / ListBox & gt;

Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -