Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
240
LeftButton Pressed is lost in PreviewMouseMove event
posted

Hi there, I'm attempting to use the XamDataTree in place of the regular WPF TreeView control and am running into a problem.

In our application we handle our own drag/drop in order to move our data items around between controls. So we handle the PreviewMouseMove event on the TreeView and check to see if the left mouse button is pressed.

This worked fine with WPF's TreeView, but in the XamDataTree when I click on an element in the tree, hold down the left mouse button, and move the mouse the event fires properly but the LeftButton property of the MouseButtonEventArgs paramater is not set to MouseButtonState.Pressed.

If I click outside the XamDataTree and then move the mouse into the control the LeftButton is properly set to Pressed.

 

Any ideas here?