コード例 #1
0
 public DragEventArgs(Point position, TransferDataStore dataStore, DragDropAction action)
 {
     Data     = dataStore;
     Position = position;
     Action   = action;
     Success  = false;
 }
コード例 #2
0
ファイル: Clipboard.cs プロジェクト: nomadwarrior/xwt-mobile
        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);
        }