rodriwasabi / gong-wpf-dragdrop

Automatically exported from code.google.com/p/gong-wpf-dragdrop
0 stars 1 forks source link

DropPosition #19

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
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

Original issue reported on code.google.com by sportfr...@gmail.com on 7 Jun 2010 at 10:06

GoogleCodeExporter commented 8 years ago
Committed r24.

Original comment by gro...@gmail.com on 22 Jun 2010 at 10:40