views:

35

answers:

0

Background: I have two usercontrols, each with a DataGrid wrapped in a StackPanel. They're stacked in the Default.xaml vertically.

Added the PanelDragDropTargets to both user controls. We can drag and drop the datagrids so one that was at the bottom can be at the top. (for user's preferences) Works great.

Only issue... when you do a drag-scroll on the DataGrid ScrollBar, it moves the datagrid. I've added a couple of events for the DataGrid preventing the drag action to occur. DragOver, DragLeave, DragEnter to e.Handled = true; That stopped the drag action, but the bothersome popup image still shows up.

Tried adding in the DataGrid's XAML: DragIndicatorStyle="{x:Null}" DropLocationIndicatorStyle="{x:Null}" AllowDrop="False" to no effect.

Question: How do I suppress that popup drag image?

Thanks, -rob