Esempio n. 1
0
            public void DragOver(GongDrag.IDropInfo dropInfo)
            {
                var adapter = new DropInfoAdapter(dropInfo);

                target.DragOver(adapter);
                dropInfo.Effects           = adapter.Effects.ToWindows();
                dropInfo.DropTargetAdorner = adapter.DropTargetAdorner.ToGong();
            }
Esempio n. 2
0
 public DropInfoAdapter(GongDrag.IDropInfo dropInfo)
 {
     Data        = dropInfo.Data;
     TargetItem  = dropInfo.TargetItem;
     InsertIndex = dropInfo.InsertIndex;
     if (dropInfo.DropTargetAdorner == GongDrag.DropTargetAdorners.Highlight)
     {
         DropTargetAdorner = CommonDrag.DropTargetAdorners.Highlight;
     }
     else if (dropInfo.DropTargetAdorner == GongDrag.DropTargetAdorners.Insert)
     {
         DropTargetAdorner = CommonDrag.DropTargetAdorners.Insert;
     }
     Effects        = dropInfo.Effects.ToCommon();
     InsertPosition = dropInfo.InsertPosition.ToCommon();
 }
Esempio n. 3
0
            public void Drop(GongDrag.IDropInfo dropInfo)
            {
                var adapter = new DropInfoAdapter(dropInfo);

                target.Drop(adapter);
            }