示例#1
0
        public async Task ShowAcceptCacheTextDialog()
        {
            var dialog = new AcceptCacheUsaseDialog()
            {
                DataContext = new AcceptCacheUsaseDialogContext(withConfirm: false)
            };


            await dialog.ShowAsync();
        }
示例#2
0
        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);
        }