public DragEventArgs(Point position, TransferDataStore dataStore, DragDropAction action) { Data = dataStore; Position = position; Action = action; Success = false; }
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); }