private void OpenUserIDPage(IUICommand command)
        {
            string _userid = APIMASHGlobals.Instance.UserID;

            m_useridPopup = new Popup();
            m_useridPopup.Closed += UseridPopup_Closed;
            Window.Current.Activated += OnUserIdPanelActivated;

            m_useridPopup.IsLightDismissEnabled = true;
            m_useridPopup.Width = m_CharmsFlyoutWidth;
            m_useridPopup.Height = m_windowBounds.Height;

            UserIdUserControl _mypane = new UserIdUserControl();
            _mypane.Width = m_CharmsFlyoutWidth;
            _mypane.Height = m_windowBounds.Height;

            m_useridPopup.Child = _mypane;
            m_useridPopup.SetValue(Canvas.LeftProperty, m_windowBounds.Width - m_CharmsFlyoutWidth);
            m_useridPopup.SetValue(Canvas.TopProperty, 0);
            m_useridPopup.IsOpen = true;
        }
        private void OpenUserIDPage(IUICommand command)
        {
            string _userid = APIMASHGlobals.Instance.UserID;

            m_useridPopup             = new Popup();
            m_useridPopup.Closed     += UseridPopup_Closed;
            Window.Current.Activated += OnUserIdPanelActivated;

            m_useridPopup.IsLightDismissEnabled = true;
            m_useridPopup.Width  = m_CharmsFlyoutWidth;
            m_useridPopup.Height = m_windowBounds.Height;

            UserIdUserControl _mypane = new UserIdUserControl();

            _mypane.Width  = m_CharmsFlyoutWidth;
            _mypane.Height = m_windowBounds.Height;

            m_useridPopup.Child = _mypane;
            m_useridPopup.SetValue(Canvas.LeftProperty, m_windowBounds.Width - m_CharmsFlyoutWidth);
            m_useridPopup.SetValue(Canvas.TopProperty, 0);
            m_useridPopup.IsOpen = true;
        }