async Task WaitPopupClosing() { CancellationToken = new CancellationToken(); Popup popup = Popup; AsyncAction = EventAwaiter.WaitEventAsync <object>(handler => popup.Closed += handler, handler => popup.Closed -= handler, () => { }).AsAsyncAction(); await AsyncAction; popup = null; }