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
105
text in Application menu instead of icon
posted

Can Text be shown in Application menu instead of an Icon

Parents
No Data
Reply
  • 4219
    posted

    Hi,               

     

    You can use the ApplicationMenuButtonImage property and set a an image with the desired text.

    Just for example:

     

                ultraToolbarsManager1.Style = Infragistics.Win.UltraWinToolbars.ToolbarStyle.ScenicRibbon;

     

                // emptySpace.png is used as a canvas for the text that will be drawn

                Image img = Image.FromFile(@"..\..\emptySpace.png");

                Bitmap b0 = new Bitmap(img, new Size(50, 20));

                using (Graphics g = Graphics.FromImage(b0))

                {

                    g.DrawString("text", new Font("Arial", 10f), Brushes.Black, 0, 0);

                }

                ultraToolbarsManager1.Ribbon.ApplicationMenuButtonImage = b0;

    Let me know if this works for you.       

     

    Regards,

    Stefaniya

Children