private async void App_CloseRequested(object sender, SystemNavigationCloseRequestedPreviewEventArgs e)
        {
            var deferral = e.GetDeferral();

            await System.Threading.Tasks.Task.Run(() => { AppCommunicator.ExitAllApp(); });

            deferral.Complete();
        }
        private async void ExitButton_DoubleTapped(object sender, DoubleTappedRoutedEventArgs e)
        {
            AppCommunicator.ExitAllApp();
            ExitButton.IsEnabled = false;

            await Task.Delay(100);

            Application.Current.Exit();
        }
 private void OnCloseRequest(object sender, SystemNavigationCloseRequestedPreviewEventArgs e)
 {
     AppCommunicator.ExitAllApp();
 }