I need to know the mouse position when the drop takes place. Could you please add the following code to the control?
All in DropInfo.cs
public DropInfo() { ... VisualTarget = sender as UIElement; if (VisualTarget == null) return; DropPosition = e.GetPosition(VisualTarget);
if (sender is ItemsControl) ... (and change the position part in DropPosition here) }
And add the following code to end of this class: /// <summary> /// Gets the mouse position relative to the VisualTarget /// </summary> public Point DropPosition { get; private set; }
Once again thanks,
Frank
Comment #1
Posted on Jun 22, 2010 by Helpful KangarooCommitted r24.
Status: Fixed
Labels:
Type-Defect
Priority-Medium