punker76 / gong-wpf-dragdrop

The GongSolutions.WPF.DragDrop library is a drag'n'drop framework for WPF

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DragSourceIgnore Inherits

mtdaniels opened this issue · comments

It seems that the default behavior is for nearly everything within a list item to be a drag point. This is fine for simple list items; however, when the list item becomes complex it can create problems.

I'd like to add a dedicated grip control within each list item, and have this be the only draggable point. To do so, I should be able to set DragSourceIgnore on the template container perhaps. This doesn't seem to work because the property is not flagged with FrameworkPropertyMetadata.Inherits. I think DragSourceIgnore would have to be set on every single control - which isn't practical (especially if there are controls with children).

Adding the FrameworkPropertyMetadata.Inherits flag makes this functionality much more useful and easier to control.