Hello,
I need to change the 'File' label of the Rubban (see pricture attached). I Use ApplicationFileMenu2010, but I cannot find how to change this label.
I have also serached in the WinToolbarsManager Resource Strings Reference.
Thanks for your help.
Hi,
Thank you for your feedback.
I am glad that you have resolved your issue. Let me know if you have any additional questions.
Thanks for your sample, it helped me find the solution: in our project, we have the following steps:
- we load the ribbon definition from an XML file (based on several factors: role of the user etc.)
- we have a localization methods localizing everything on the screen (including Infragistics components): it is in this method that I tried to add rc.SetCustomizedString("DefaultCaptionForFileMenuButton", "Fichier");
With your sample, I just put this line in the main load event of the form, and it worked.
But what is funny is that all other SetCustomizedString related to the Ribbon get changed properly in our initial design. The problem was only for the 'DefaultCaptionForFileMenuButton'.
Ok we can live with this split of our localization method. Thanks a lot.
Hello Pierre,
Please find attached a small sample solution where I have changed the text of the File button of Ribbon. Please try this solution and let me know whether it is working correctly or not at your site. If this sample works correctly the issue you are facing may be an issue in your code. If this sample does not work correctly it may be a difference of the version of the controls we are using. My test were performed with version 14.2.20142.2092 of Infragistics Controls 14 Volume 2. So please let me know the exact version of Infragistics controls you are using.
If this sample project is not an accurate demonstration of what you're trying to do, please feel free to modify it and send it back, or send a small sample project of your own if you have one.
Waiting for your feedback.
Hello LIko,
I tried this, but without success. Using ResourceCustomizer works for other lablesand tooltips on my ribbon, but not for the 'File'.
I am sure I got the right spelling of the ResourceCustomizer (DefaultCaptionForFileMenuButton), but without success.
Any idea?
Thank you for your help.
Pierre
Thank you for posting in our forum.
You are on the right way. In order to change the “File” label of the Ribbon you need to set DefaultCaptionForFileMenuButton resource string of UltraWinToolbars. You can use code like this:
ResourceCustomizer rc = Infragistics.Win.UltraWinToolbars.Resources.Customizer;
rc.SetCustomizedString("DefaultCaptionForFileMenuButton", "Your custom string");
Please follow the next link in order to find all WinToolbarsManager resource strings http://help.infragistics.com/Help/Doc/WinForms/2014.2/CLR4.0/html/WinToolbarsManager_Resource_Strings.html
Please let me know if you have any further questions.
Sincerely,
Milko
Developer Support Engineer
Infragistics
www.infragistics.com/support