Ejemplo n.º 1
0
        public override void OnInitialized(IContainerProvider containerProvider)
        {
            base.OnInitialized(containerProvider);

            this._container     = containerProvider;
            this._regionManager = this._container.Resolve <IRegionManager>();

            NavBarGroup group = new NavBarGroup();

            group.Header = MenuGroups.ProductManagerGroup;
            NavBarItem item1 = new NavBarItem();

            item1.Content = Constants.UIConstants.ProductManagerWorkItemName;
            item1.Command = ToSecureCommand(OpenProductManagerWorkItem);

            NavBarItem item2 = new NavBarItem();

            item2.Content = Constants.UIConstants.BarndManagerWorkItemName;
            item2.Command = ToSecureCommand(OpenBrandManagerWorkItem);

            NavBarItem item3 = new NavBarItem();

            item3.Content = Constants.UIConstants.CategoriesWorkItemName;
            item3.Command = ToSecureCommand(OpenCategoriesWorkItem);
            group.Items.Add(item1);
            group.Items.Add(item2);
            group.Items.Add(item3);

            ShellExtensionService.AddNavigationGroupExtension(group);
        }
Ejemplo n.º 2
0
        public override void OnInitialized(IContainerProvider containerProvider)
        {
            base.OnInitialized(containerProvider);
            this._container     = containerProvider;
            this._regionManager = this._container.Resolve <IRegionManager>();

            NavBarGroup group = new NavBarGroup();

            group.Header = "Test Group";
            NavBarItem item1 = new NavBarItem();

            item1.Content = "Messages";
            item1.Command = ToSecureCommand(OpenMesagesWorkItem);
            group.Items.Add(item1);


            ShellExtensionService.AddNavigationGroupExtension(group);
        }