public static void SetDescription(System.Windows.IDataObject dataObject, System.Windows.DragDropEffects effect, string message, string insert = null) { DropImageType type; switch (effect) { case System.Windows.DragDropEffects.Copy: type = DropImageType.Copy; break; case System.Windows.DragDropEffects.Link: type = DropImageType.Link; break; case System.Windows.DragDropEffects.Move: type = DropImageType.Move; break; case System.Windows.DragDropEffects.None: type = DropImageType.None; break; default: type = DropImageType.NoImage; break; } SetDescription((IDataObject)dataObject, type, message, insert); }
public void DragDropOperationFinished(System.Windows.DragDropEffects operationResult, IDragInfo dragInfo) { DragDrop.DefaultDragHandler.DragDropOperationFinished(operationResult, dragInfo); }
public void Drop(System.Windows.IDataObject dataObject, System.Windows.Point point, System.Windows.DragDropEffects effect) { Drop((IDataObject)dataObject, (int)point.X, (int)point.Y, (int)effect); }
public void DragOver(System.Windows.Point point, System.Windows.DragDropEffects effect) { DragOver((int)point.X, (int)point.Y, (int)effect); }