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
  • 6158
    Verified Answer
    Offline posted

    Hello Ronald,

    I don't foresee any reason for these tools to not be enabled. I've added your code to a sample application, and the tools are enabled and responsive. I've attached the sample for your inspection. Please run the sample and verify the behavior. When you run it, if the tools are enabled in this sample, please attempt to modify the sample to match your application in hope of reproducing the issue.

    Thank you.

    Chris

    WindowsApplication1.zip
Reply Children