Пример #1
0
        private void ResetNavigationMenus()
        {
            ObservableCollection <MenuItem> ic = NavigationMenu.GetItems();

            this.mainWindow.Menu.Items.Clear();
            foreach (var item in ic)
            {
                this.mainWindow.Menu.Items.Add(item);
            }
        }