Esempio n. 1
0
        public void Add(MenuItem item)
        {
            //NavBarGroup group = GetParent(item.Parent);

            NavBarGroup group = new NavBarGroup();

            group.Header = item.Title;
            group.Name = item.Title;
            //NavBarItem menu = new NavBarItem { Content = item.Title, Command = item.Command, Name = "bbi" + Regex.Replace(item.Title, "[^a-zA-Z0-9]", "") };
            //group.Items.Add(menu);
            navbarcontrol.Groups.Add(group);

            //group.ItemLinks.Add(new BarButtonItemLink { BarItemName = button.Name });
        }
Esempio n. 2
0
 public void Add(MenuItem item)
 {
     NavBarGroup parent = GetParent(item.Parent);
     NavBarItem button = new NavBarItem { Content = item.Title, Command = item.Command, Name = "bbi" + Regex.Replace(item.Title, "[^a-zA-Z0-9]", "") };
     parent.Items.Add(button);
 }