I had the same problem and created a new logical element in my IsDragMouseOver custom control and reference this in my control template.
In the control code of the control, I added the following:
protected override void OnDragEnter(DragEventArgs e) { base.OnDragEnter(e); IsDragMouseOver = true; } protected override void OnDragLeave(DragEventArgs e) { base.OnDragLeave(e); IsDragMouseOver = false; } protected override void OnDragOver(DragEventArgs e) { base.OnDragOver(e); IsDragMouseOver = true; } protected override void OnDrop(DragEventArgs e) { base.OnDrop(e); IsDragMouseOver = false; }
Hope this helps.
source share