/// <summary> /// Notifies the DragDropHelper that the current Window received /// a Drop event. /// </summary> /// <param name="dropHelper">The DragDropHelper instance to notify.</param> /// <param name="data">The DataObject containing a drag image.</param> /// <param name="cursorOffset">The current cursor's offset relative to the window.</param> /// <param name="effect">The accepted drag drop effect.</param> public static void Drop(this IDropTargetHelper dropHelper, System.Windows.IDataObject data, Point cursorOffset, DragDropEffects effect) { Win32Point pt = cursorOffset.ToWin32Point(); dropHelper.Drop((IDataObject)data, ref pt, (int)effect); }
/// <summary> /// Notifies the DragDropHelper that the current Window received /// a DragOver event. /// </summary> /// <param name="dropHelper">The DragDropHelper instance to notify.</param> /// <param name="cursorOffset">The current cursor's offset relative to the window.</param> /// <param name="effect">The accepted drag drop effect.</param> public static void DragOver(this IDropTargetHelper dropHelper, Point cursorOffset, DragDropEffects effect) { Win32Point pt = cursorOffset.ToWin32Point(); dropHelper.DragOver(ref pt, (int)effect); }