What's wrong with the left mouse button in beta2?<p><font size=2>That's weird, MouseDown and MouseLeftButtonDown are not working here. Left-clicking on the button, test1 and test2 event handlers are not hit. There's no problem with the right mouse button.</font></p> <p><font size=2>&lt;</font><font color="#800000">Button</font><font color="#0000ff"> </font><font color="#0000ff"> </font><font color="#ff0000">MouseDown</font><font color="#0000ff">=</font>&quot;<font color="#0000ff">test1</font>&quot;<font color="#0000ff"> </font><font color="#ff0000">MouseLeftButtonDown</font><font color="#0000ff">=</font>&quot;<font color="#0000ff">test2</font>&quot;<font color="#0000ff"> </font><font color="#ff0000">MouseRightButtonDown</font><font color="#0000ff">=</font>&quot;<font color="#0000ff">test3</font>&quot; /&gt;</font></p> <p><font size=2>A bug?.. Can somebody repro this?</font></p>© 2009 Microsoft Corporation. All rights reserved.Thu, 19 Jun 2008 00:15:52 Z3c75dbe9-cc22-4d9b-be72-d74eac252a29http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/3c75dbe9-cc22-4d9b-be72-d74eac252a29#3c75dbe9-cc22-4d9b-be72-d74eac252a29http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/3c75dbe9-cc22-4d9b-be72-d74eac252a29#3c75dbe9-cc22-4d9b-be72-d74eac252a29Konstantin Gonikmanhttp://social.msdn.microsoft.com/Profile/en-US/?user=Konstantin%20GonikmanWhat's wrong with the left mouse button in beta2?<p><font size=2>That's weird, MouseDown and MouseLeftButtonDown are not working here. Left-clicking on the button, test1 and test2 event handlers are not hit. There's no problem with the right mouse button.</font></p> <p><font size=2>&lt;</font><font color="#800000">Button</font><font color="#0000ff"> </font><font color="#0000ff"> </font><font color="#ff0000">MouseDown</font><font color="#0000ff">=</font>&quot;<font color="#0000ff">test1</font>&quot;<font color="#0000ff"> </font><font color="#ff0000">MouseLeftButtonDown</font><font color="#0000ff">=</font>&quot;<font color="#0000ff">test2</font>&quot;<font color="#0000ff"> </font><font color="#ff0000">MouseRightButtonDown</font><font color="#0000ff">=</font>&quot;<font color="#0000ff">test3</font>&quot; /&gt;</font></p> <p><font size=2>A bug?.. Can somebody repro this?</font></p>Thu, 25 May 2006 19:42:07 Z2006-05-25T20:27:55Zhttp://social.msdn.microsoft.com/Forums/en-US/wpf/thread/3c75dbe9-cc22-4d9b-be72-d74eac252a29#7e442446-b051-463f-b724-490aaa3a92a7http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/3c75dbe9-cc22-4d9b-be72-d74eac252a29#7e442446-b051-463f-b724-490aaa3a92a7csammishttp://social.msdn.microsoft.com/Profile/en-US/?user=csammisWhat's wrong with the left mouse button in beta2?Button elements capture the left mouse down event via the Click event  (or right mouse down, if the system is configured for &quot;right button&quot; clicks), which is probably what's stopping your explicit MouseDown handlers.<br>Thu, 25 May 2006 20:16:20 Z2006-05-25T20:16:20Zhttp://social.msdn.microsoft.com/Forums/en-US/wpf/thread/3c75dbe9-cc22-4d9b-be72-d74eac252a29#a0552254-2e83-4715-8b4a-cd8850242c0fhttp://social.msdn.microsoft.com/Forums/en-US/wpf/thread/3c75dbe9-cc22-4d9b-be72-d74eac252a29#a0552254-2e83-4715-8b4a-cd8850242c0fKonstantin Gonikmanhttp://social.msdn.microsoft.com/Profile/en-US/?user=Konstantin%20GonikmanWhat's wrong with the left mouse button in beta2?Click event works as expected. But why should Click event hinder a MouseDown event?Thu, 25 May 2006 20:20:35 Z2006-05-25T20:20:35Zhttp://social.msdn.microsoft.com/Forums/en-US/wpf/thread/3c75dbe9-cc22-4d9b-be72-d74eac252a29#9cb35217-1fd5-4328-81bb-ac0ac4fe8974http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/3c75dbe9-cc22-4d9b-be72-d74eac252a29#9cb35217-1fd5-4328-81bb-ac0ac4fe8974Konstantin Gonikmanhttp://social.msdn.microsoft.com/Profile/en-US/?user=Konstantin%20GonikmanWhat's wrong with the left mouse button in beta2?<P>Never mind, I've found an explanation on msdn:</P> <P>&nbsp;</P> <H3 class=subHeading>Working Around Event Suppression by Controls</H3> <DIV class=subSection> <P>One scenario where preview events are used is for input events and controls. Sometimes, the creator of the control might wish to suppress a certain event from originating from their control, perhaps to substitute a component-defined event that carries more information or implies a more specific behavior. For instance, a Windows Presentation Foundation (formerly code-named "Avalon")&nbsp;Button suppresses normal MouseLeftButtonDown bubbling events in favor of a Click event. If other elements towards the root of your application still wanted an opportunity that event, one alternative is to handle even routed events. But a simpler way is to change the routing direction you handle to be the Preview equivalent PreviewMouseLeftButtonDown. </P></DIV>Thu, 25 May 2006 20:23:07 Z2006-05-25T20:23:07Zhttp://social.msdn.microsoft.com/Forums/en-US/wpf/thread/3c75dbe9-cc22-4d9b-be72-d74eac252a29#3add81bc-f145-43ee-bc69-6301cf55a1f4http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/3c75dbe9-cc22-4d9b-be72-d74eac252a29#3add81bc-f145-43ee-bc69-6301cf55a1f4LesterLobo - MSFThttp://social.msdn.microsoft.com/Profile/en-US/?user=LesterLobo%20-%20MSFTWhat's wrong with the left mouse button in beta2?try the <font size=2>PreviewMouseLeftButtonDown</font>Thu, 25 May 2006 20:27:08 Z2006-05-25T20:27:55Z