Silverlight Listbox firing MouseRightButtonDown, but not MouseLeftButtonDown
Posted
by Steav
on Stack Overflow
See other posts from Stack Overflow
or by Steav
Published on 2010-05-11T09:20:00Z
Indexed on
2010/05/11
9:24 UTC
Read the original article
Hit count: 599
I have this problem in a bigger Project...... so I set up a 'Testpoject' as Proof of Concept:
- New Silverlight-Application
- Add Listbox
- Fill listbox with a few Checkboxes
- Register listBox1_MouseLeftButtonDown
- register listBox1_MouseRightButtonDown
You will see, that the listBox1_MouseLeftButtonDown won't fire under any circumstances.... listBox1_MouseRightButtonDown however fires just fine.
I tried using a custom Class deriving from ListBox and overriding, assuming something in the ListBox Class was setting e.Handled = false, but this did not change the behaviour, either.
Any Ideas on why this happens and how to fix?
(This problem also stops the 'parent'-control from receiving the Click-Event... so the Event-passing is broke)
© Stack Overflow or respective owner