void FinishDrag(bool delete) { Widget.DragEnd -= HandleWidgetDragEnd; Widget.DragDataGet -= HandleWidgetDragDataGet; Widget.DragFailed -= HandleDragFailed; Widget.DragDataDelete -= HandleDragDataDelete; Widget.DragBegin -= HandleDragBegin; eventSink.OnDragFinished(new DragFinishedEventArgs(delete)); }
void FinishDrag(bool delete) { EventsRootWidget.DragEnd -= HandleWidgetDragEnd; EventsRootWidget.DragDataGet -= HandleWidgetDragDataGet; EventsRootWidget.DragFailed -= HandleDragFailed; EventsRootWidget.DragDataDelete -= HandleDragDataDelete; EventsRootWidget.DragBegin -= HandleDragBegin; // This event is subscribed only when manualy starting a drag ApplicationContext.InvokeUserCode(delegate { eventSink.OnDragFinished(new DragFinishedEventArgs(delete)); }); }
void FinishDrag(bool delete) { Widget.DragEnd -= HandleWidgetDragEnd; Widget.DragDataGet -= HandleWidgetDragDataGet; Widget.DragFailed -= HandleDragFailed; Widget.DragDataDelete -= HandleDragDataDelete; Widget.DragBegin -= HandleDragBegin; // This event is subscribed only when manualy starting a drag Toolkit.Invoke(delegate { eventSink.OnDragFinished(new DragFinishedEventArgs(delete)); }); }