Example #1
0
        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);
        }
Example #2
0
 public void DragDropOperationFinished(System.Windows.DragDropEffects operationResult, IDragInfo dragInfo)
 {
     DragDrop.DefaultDragHandler.DragDropOperationFinished(operationResult, dragInfo);
 }
Example #3
0
 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);
 }
Example #4
0
 public void DragOver(System.Windows.Point point, System.Windows.DragDropEffects effect)
 {
     DragOver((int)point.X, (int)point.Y, (int)effect);
 }