public async Task ShowAcceptCacheTextDialog() { var dialog = new AcceptCacheUsaseDialog() { DataContext = new AcceptCacheUsaseDialogContext(withConfirm: false) }; await dialog.ShowAsync(); }
public async Task <bool> ShowConfirmAcceptCacheDialog() { var dialog = new AcceptCacheUsaseDialog() { DataContext = new AcceptCacheUsaseDialogContext() }; var result = await dialog.ShowAsync(); if (result == Windows.UI.Xaml.Controls.ContentDialogResult.Primary) { return(true); } return(false); }