private void DoFocusOnNavHeader(NavHeader nextFocus)
 {
     if (nextFocus != null)
     {
         nextFocus.IsSelected = true;
         this.GdContent.Children.Clear();
         this.UpdateListMenuBoxSelectStatus(nextFocus.Key);
         this.UpdateNavHeaderStatus();
         BaseModuleView moduleView = this.HsPages[nextFocus.Key] as BaseModuleView;
         if (moduleView != null)
         {
             this.GdContent.Children.Add(moduleView);
         }
     }
 }
        private void GetMenuContentPage(string sText, string sKey)
        {
            // 创建界面
            if (this.HsPages == null)
            {
                this.HsPages = new Hashtable();
            }

            this.GdContent.Children.Clear();
            if (this.HsPages.Contains(sKey))
            {
                // Focus To NavHeader
                for (int i = 0; i < this.SpNavHeaders.Children.Count; i++)
                {
                    NavHeader navHeader = this.SpNavHeaders.Children[i] as NavHeader;
                    if (navHeader != null)
                    {
                        if (navHeader.Key != sKey)
                        {
                            navHeader.IsSelected = false;
                        }
                        else
                        {
                            navHeader.IsSelected = true;
                        }
                    }
                }

                // Move NavHeader Container keep current navheader visible
                this.UpdateNavHeaderStatus();

                BaseModuleView moduleView = this.HsPages[sKey] as BaseModuleView;
                if (moduleView != null)
                {
                    this.GdContent.Children.Add(moduleView);
                }
            }
            else
            {
                // 取消顶部导览按钮选中状态
                for (int i = 0; i < this.SpNavHeaders.Children.Count; i++)
                {
                    NavHeader navHeader = this.SpNavHeaders.Children[i] as NavHeader;
                    if (navHeader != null)
                    {
                        navHeader.IsSelected = false;
                    }
                }

                // 创建顶部导览按钮
                NavHeader newNavHeader = new NavHeader();
                newNavHeader.Text            = sText;
                newNavHeader.Key             = sKey;
                newNavHeader.OnClosed       += NewNavHeader_OnClosed;
                newNavHeader.OnMidMouseDown += NewNavHeader_OnClosed;
                newNavHeader.OnFocused      += NewNavHeader_OnFocused;
                newNavHeader.IsSelected      = true;
                this.SpNavHeaders.Children.Add(newNavHeader);


                this.UpdateNavHeaderStatus();

                // 创建内容面板
                BaseModuleView moduleView = this.CreateContentView(sKey);
                this.GdContent.Children.Clear();
                this.GdContent.Children.Add(moduleView);
                this.HsPages.Add(sKey, moduleView);
            }
        }