Example #1
0
 public PopupCotainer(Setting basePage)
 {
     InitializeComponent();
     this.Loaded += new RoutedEventHandler(PopupCotainer_Loaded);
     _BasePage = basePage;
     _BasePage.BackKeyPress += BasePage_BackKeyPress;
 }
Example #2
0
        private void ClosePopup()
        {
            if (_PopupContent.canceled)
                _BasePage.unsetPassword();
            else
                _BasePage.setPassword(_PopupContent.TextBoxPassword.Text);

            contentArea.Children.Clear();
            _PopupContent = null;
            _BasePage = null;

            Popup parent = this.Parent as Popup;
            if (parent != null)
            {
                parent.IsOpen = false;
            }
        }