Exemplo n.º 1
0
 public DragEventArgs(Point position, TransferDataStore dataStore, DragDropAction action)
 {
     Data     = dataStore;
     Position = position;
     Action   = action;
     Success  = false;
 }
Exemplo n.º 2
0
        public static ITransferData GetTransferData(IEnumerable <TransferDataType> dataTypes)
        {
            var result = new TransferDataStore();

            result.DataRequestCallback = t => Clipboard.GetData(t);
            foreach (var dt in dataTypes.Where(t => Clipboard.ContainsData(t)))
            {
                result.AddValue(dt, (object)null);
            }
            return(result);
        }