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
215
Drag From XamDataGrid Event effecting Header Area
posted

Hi All,

I've set up the usual Preview events in order to enable the dragging of an item out of a xamDataGrid using the standard event handlers:

PreviewMouseLeftButtonDown

+

PreviewMouseMove

Once the mouse has moved far enough a drag is started.  All good ...

However, this is now rendering the headers/columns un-resizeable since the mouse events think this is a row drag.  What are the best methods to ensure that these events are only fired when it is actually a DataRecord that is being dragged?