async private void Button2_Click(object sender, RoutedEventArgs e) { ContentDialog1 contentDialog1 = new ContentDialog1(); await contentDialog1.ShowAsync(); }