views:

29

answers:

1

I have a StackPanel with MouseLeave events. I have run into an issue where MouseLeave events are not occurring for this StackPanel when elements are being dragged from this stack panel to other outside elements.

How can I have the MouseLeave event detected when Dragging?

Thank you.

A: 

See if the DragLeave event accomplishes what you want:

http://msdn.microsoft.com/en-us/library/system.windows.uielement.dragleave(VS.95).aspx

Peter Leppert
I don't think this will work. I am referring here to dragging and dropping UI objects as shown here: http://msdn.microsoft.com/en-us/library/cc189066(VS.95).aspx.
Brandon