private void OnLeavingBackground(NSNotification notification) { LeavingBackground?.Invoke(this, new LeavingBackgroundEventArgs()); Windows.UI.Xaml.Window.Current?.OnVisibilityChanged(true); }
/// <summary> /// Raises the <see cref="LeavingBackground"/> event. /// </summary> /// <param name="args">Leaving background event args.</param> internal static void RaiseLeavingBackground(LeavingBackgroundEventArgs args) => LeavingBackground?.Invoke(null, args);
private void App_LeavingBackground(object sender, Windows.ApplicationModel.LeavingBackgroundEventArgs e) { EventDispatcher.Dispatch(() => LeavingBackground?.Invoke(this, e)); }