//NavBarControl navBar; //public NavItemCollection(NavBarControl navBar) //{ // this.navBar = navBar; //} //protected NavBarControl NavBar { get { return navBar; } } public NavBarItem Add(NavBarItem item) { //if (item.NavBar == null) item.SetNavBarCore(NavBar); return AddItem(item) as NavBarItem; }
public virtual void AddRange(NavBarItem[] items) { foreach (NavBarItem item in items) AddItem(item); }
//NavBarControl navBar; //public NavItemCollection(NavBarControl navBar) //{ // this.navBar = navBar; //} //protected NavBarControl NavBar { get { return navBar; } } public NavBarItem Add(NavBarItem item) { //if (item.NavBar == null) item.SetNavBarCore(NavBar); return(AddItem(item) as NavBarItem); }