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
356
Translation of WinTabbedMdi ContextMenu Items
posted

How can I translate the context menu items of WinTabbedMdi?

I couldn't find an appropriate method or property to do this.

I have made a workaround:

 private void ultraTabbedMdiManager1_InitializeContextMenu(object sender, Infragistics.Win.UltraWinTabbedMdi.MdiTabContextMenuEventArgs e)
        {
            foreach (MenuItem mi in e.ContextMenu.MenuItems)
            {
                switch(mi.Text)
                {
                    case "&Close":
                        mi.Text = "Close";
                        break;
                    case "New Hori&zontal Tab Group":
                        mi.Text = "New Horizontal Tab Group";
                        break;
                    case "New &Vertical Tab Group":
                        mi.Text = "New Vertical Tab Group";
                        break;
                    case "C&ancel":
                        mi.Text = "Cancel";
                        break;
                    case "Move to Ne&xt Tab Group":
                        mi.Text = "Move to Next Tab Group";
                        break;
                    case "Move to P&revious Tab Group":
                        mi.Text = "Move to Previous Tab Group";
                        break;
                }
            }
        }

 Anyone have another suggestion?

Thanks in advance

Parents Reply Children
No Data