Exemple #1
0
        public void CloseModal()
        {
            Frame.Effect          = null;
            ModalFrame.Visibility = System.Windows.Visibility.Collapsed;
            ModalFrame.Navigate(null);
            Frame.IsEnabled = true;

            if (_currentModal != null)
            {
                _currentModal.OnModalClose();
                _currentModal = null;
            }
        }
Exemple #2
0
        public ModalInvoker ShowModal(Page page)
        {
            Frame.IsEnabled = false;
            ModalFrame.Navigate(page);
            ModalFrame.Visibility = System.Windows.Visibility.Visible;
            Frame.Effect          = new BlurEffect()
            {
                Radius        = 3,
                RenderingBias = RenderingBias.Quality,
                KernelType    = KernelType.Gaussian
            };

            _currentModal = new ModalInvoker();

            return(_currentModal);
        }