private async void ButtonBack_Click(object sender, Windows.UI.Xaml.RoutedEventArgs e) { await RunOnUIThreadAsync(CoreDispatcherPriority.Normal, () => { if (currentStep == SetupDialogStep.Saving) { ButtonBack.IsEnabled = false; currentStep = SetupDialogStep.Privacy; SwitchPresenterContent.Value = "Privacy"; } }); }
private async void ButtonConfirm_Click(object sender, Windows.UI.Xaml.RoutedEventArgs e) { await RunOnUIThreadAsync(CoreDispatcherPriority.Normal, () => { if (currentStep == SetupDialogStep.Privacy) { currentStep = SetupDialogStep.Saving; SwitchPresenterContent.Value = "Saving"; ButtonBack.IsEnabled = true; } else if (currentStep == SetupDialogStep.Saving) { closing = true; this.Hide(); } }); }