// construction and destruction public TabbedMenu() { _mainMenuTabStrip = new WebTabStrip(new MainMenuTabCollection(this, new[] { typeof(MainMenuTab) })); _subMenuTabStrip = new WebTabStrip(this, new[] { typeof(SubMenuTab) }); _statusStyle = new Style(); _subMenuBackgroundColor = new Color(); }
// methods and properties private void CreateControls() { _tabStrip = new WebTabStrip(this); _multiViewInternal = new MultiView(); _topControl = new PlaceHolder(); _bottomControl = new PlaceHolder(); _placeHolderTabView = new EmptyTabView(); }
protected internal void SetTabStrip(WebTabStrip tabStrip) { ArgumentUtility.CheckNotNull("tabStrip", tabStrip); _tabStrip = tabStrip; for (int i = 0; i < InnerList.Count; i++) { ((WebTab)InnerList[i]).SetTabStrip(_tabStrip); } InitalizeSelectedTab(); }
/// <summary> Sets this tab's <see cref="WebTabStrip"/>. </summary> protected internal virtual void SetTabStrip(WebTabStrip tabStrip) { _tabStrip = tabStrip; if (_selectDesired == 1) { _selectDesired = 0; IsSelected = true; } else if (_selectDesired == -1) { _selectDesired = 0; IsSelected = false; } }