public async Task <bool> ShowDialog(ContainedDialog containedDialog)
        {
            if (containedDialog == null)
            {
                throw new ArgumentNullException(nameof(containedDialog));
            }

            ShowControl(containedDialog);

            return(await containedDialog.ShowDialog(HideControl).ConfigureAwait(false));
        }
示例#2
0
        public async Task <bool> ShowDialog(ContainedDialog containedDialog)
        {
            if (brdrContainer.Child is ContainedDialog oldDlg)
            {
                oldDlg.DismissDialog();
            }

            ShowControl(containedDialog);

            return(await containedDialog.ShowDialog(HideControl).ConfigureAwait(false));
        }