private void dialog_PrimaryButtonClick(ContentDialog sender, ContentDialogButtonClickEventArgs args) { Frame.Navigate(typeof(MainPage)); } private async void Update_Click(object sender, RoutedEventArgs e)