Where is the text property???

Originally Posted 14 June 2017, 6:41 am EST

  • Originally Posted 14 June 2017, 6:41 am EST

    I need to change the text of the ribbonbuttons, groups and tabs in English if the computer is different from Italian
    In main control form the language type if different from Italian performs a class for the language change. (Now set == "ITA" for trial)
    In the properties of RibbonItem I can not find the proper Text, how can I do that to change that property?

    namespace Wincontest
    {
    public partial class Main : Form
    {
    public Main()
    {
    InitializeComponent();
    }

    private void Main_Load(object sender, EventArgs e)
    {
    string path = Application.StartupPath;
    Properties.Settings.Default.Path = path;
    Properties.Settings.Default.Save();
    CultureInfo ci = CultureInfo.InstalledUICulture;
    if (ci.ThreeLetterWindowsLanguageName == "ITA")
    {
    foreach (RibbonTab tb in Ribbon.Tabs)
    {
    SettingWincontest sw = new SettingWincontest();
    sw.SetRibbon(tb);

    }
    }
    }


    and this is the class

    namespace Wincontest
    {
    class SettingWincontest
    {
    public RibbonTab SetRibbon(RibbonTab ribbontab)
    {
    foreach (RibbonGroup gr in ribbontab.Groups)
    {
    foreach (RibbonItem item in gr.Items)
    {
    switch (item.Name) //Text property there isn't
    {
    case "Nuovo Contest": //and this control not possible
    break;
    }
    }
    }
    return ribbontab;
    }
    }
    }
Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels