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?
One way would be to hook up the PreviewMouseLeftButtonDown event to the DataRecordPresenter class only - using the EventManager class. This way you can check its Record.RecordType property and see if the it is DataRecord and strart dragging.
i am facing the same issue here. is there a way to resolve this? thanks