private void App_Suspending(object sender, Windows.ApplicationModel.SuspendingEventArgs e)
 {
     EventDispatcher.Dispatch(() => Suspending?.Invoke(this, e));
 }
 private void App_LeavingBackground(object sender, Windows.ApplicationModel.LeavingBackgroundEventArgs e)
 {
     EventDispatcher.Dispatch(() => LeavingBackground?.Invoke(this, e));
 }
 private void App_Resuming(object sender, object e)
 {
     EventDispatcher.Dispatch(() => Resuming?.Invoke(this, e));
 }
 public void ShareTargetActivate(ShareTargetActivatedEventArgs e)
 {
     EventDispatcher.Dispatch(() => Activated?.Invoke(this, e));
 }
 public void OnWindowCreated(WindowCreatedEventArgs e)
 {
     EventDispatcher.Dispatch(() => WindowCreated?.Invoke(this, e));
 }
 public void SearchActivate(SearchActivatedEventArgs e)
 {
     EventDispatcher.Dispatch(() => Activated?.Invoke(this, e));
 }
 public void FileSavePickerActivate(FileSavePickerActivatedEventArgs e)
 {
     EventDispatcher.Dispatch(() => Activated?.Invoke(this, e));
 }
 public void CachedFileUpdaterActivate(CachedFileUpdaterActivatedEventArgs e)
 {
     EventDispatcher.Dispatch(() => Activated?.Invoke(this, e));
 }
 public void BackgroundActivate(Windows.ApplicationModel.Activation.BackgroundActivatedEventArgs e)
 {
     EventDispatcher.Dispatch(() => Activated?.Invoke(this, new BackgroundActivatedEventArgs(LaunchArgs, e)));
 }
 /// <summary>
 /// Activation handlers
 /// </summary>
 /// <param name="e"></param>
 public void Activate(IActivatedEventArgs e) => EventDispatcher.Dispatch(() => Activated?.Invoke(this, e));