Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
55
Ribbon application menu
posted

Hi,

I'm adding buttons runtime to the ribben. However the buttons for the ApplicationMenu on the left side are all disabled. I cannot figure out why and how I can enabled these buttons.

See below the part where the button/tools are added:

        public static void CreateFileMenu(Infragistics.Win.UltraWinToolbars.UltraToolbarsManager ultraToolbarsManager)
        {
            ultraToolbarsManager.Ribbon.FileMenuStyle = FileMenuStyle.ApplicationMenu2010;
            ButtonTool aboutButton = new ButtonTool("ABOUT");
            ultraToolbarsManager.Tools.Add(aboutButton);
            ToolBase aboutTool = ultraToolbarsManager.Ribbon.ApplicationMenu2010.NavigationMenu.Tools.AddTool("ABOUT");
            aboutTool.CustomizedCaption = "ABOUT";
           
            ButtonTool exitButton = new ButtonTool("EXIT");
            ultraToolbarsManager.Tools.Add(exitButton);
            ToolBase exitTool = ultraToolbarsManager.Ribbon.ApplicationMenu2010.NavigationMenu.Tools.AddTool("EXIT");
            exitTool.CustomizedCaption = "EXIT";
           
        }
Kind regards,
Ronald
Parents Reply Children
No Data