private async void OnDownloadGutenberg(object sender, RoutedEventArgs e) { var ctl = new GutenbergDownloadControl(); var dlg = new ContentDialog() { Content = ctl, Title = "Downloading", PrimaryButtonText = "Ok" }; var result = await dlg.ShowAsync(); }
private async void OnUpdateGutenberg(object sender, RoutedEventArgs e) { var dl = new GutenbergDownloadControl(); var cd = new ContentDialog() { Title = "Update Gutenberg Catalog", Content = dl, //Buttons are handled inside the dialog: PrimaryButtonText = "OK", }; dl.DialogParent = cd; await cd.ShowAsync(); }