Determining what control another control has been dragged onto


  • I have an app in which the user reorders controls by dragging them on top of each other. When one control is dragged onto another, I want the positions of the two controls to be swapped. Therefore, I need to be able to determine which control the pointer is over when the PointerReleased event is triggered. However, because the user is dragging the control, the sender parameter of the PointerReleased handler is the control that was dragged, not the control it was dragged onto. Is there a way to determine the control that it was dragged onto? Thanks.

    Nathan Sokalski njsokalski@hotmail.com http://www.nathansokalski.com/

    Thursday, July 10, 2014 5:46 PM