Пример #1
0
 public static void SetDragData(this DragContext context, object data)
 {
     DragDataManager.SetDragData(context, data);
 }
Пример #2
0
 public static object GetDragData(this DragContext context)
 {
     return(DragDataManager.GetDragData(context));
 }
Пример #3
0
 public static object GetDragData(DragContext dragContext)
 {
     if (DragDataManager.sourceWidget == null && DragDataManager.data is FileDropInfo || DragDataManager.IsSameSourceWidget(dragContext))
     {
         return(DragDataManager.data);
     }
     Console.WriteLine("Should set drag data in begin drag event. Then can get drag data.");
     return((object)null);
 }