2
如何從ItemDragEventArgs
獲取目標點?隨着Microsoft.Windows.DragEventArgs e
很容易:e.GetPosition(<UIElement to which the point is relative to>)
在Silverlight中從ItemDragEventArgs獲取目標點
XAML
<toolkit:PanelDragDropTarget AllowDrop="True" ItemDroppedOnTarget="DragAndDrop_ItemDroppedOnTarget">
背後
private void DragAndDrop_ItemDroppedOnTarget(object sender, ItemDragEventArgs e)
{
// how to get the destination Point here??
}