public static void SetDragData(this DragContext context, object data) { DragDataManager.SetDragData(context, data); }
public static object GetDragData(this DragContext context) { return(DragDataManager.GetDragData(context)); }
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); }