title: How to get the mouse button state in Silverlight outside of button press events?
body: <p>I have the following situation</p>
  
  <p>I handle when the left mouse button is pressed in my Silverlight app and do some things while the mouse is held down and the mouse moves. When the left button is released, I turn off the flag that's telling it to do the stuff and the mouse movement handler then no longer does the stuff.</p>
  
  <p>The problem is: if the user is in the control area, pushes the left button down and moves out of the control area, then releases the button and reenters, the MouseLeftButtonUp event never fires and the processing continues until the user clicks the mouse.</p>
  
  <p>My temporary fix was to turn the mouse flag off on MouseLeave but that's not really what I'm going for.  I'd like to check to see the mouse's left button state in the MouseEnter event, but I don't know of a way to do that.</p>
  
  <p>Does anyone know of a way I can access the mouse button state outside of the press events in Silverlight 3? Thanks,</p>
  
  <p><strong>Update</strong></p>
  
  <p>After thorough research, it doesn't look like this is possible in Silverlight 2 (and probably 3.) I found <a href="http://msdn.microsoft.com/en-us/library/system.windows.input.mouseeventargs(VS.95).aspx" rel="nofollow noreferrer">this link</a>. If anyone knows of a workaround, please let me know.</p>