Hi,
I am trying to customize the resource strings of the XamRibbon the same way I as I id on XamGrid but it doesn't work.
As you can see it works on grid but doesn't on ribbon.
Any help would be appreciated.
Best regards,
Ingo
Hi Ingo,
I couldn't understand how exactly you're setting the customized strings on the ribbon from the given snippet. But basically, to change the strings in the "Customize QAT" menu you have two options:
1. Set the strings directly through the properties exposed by the ribbon:
igRibbon.QuickAccessToolbar.MinimizeRibbonCaption = "Lint minimaliseren"; igRibbon.QuickAccessToolbar.MenuHeaderCaption = "Aanpassen Werkbalk Snelle Toegang"; igRibbon.QuickAccessToolbar.ShowAboveRibbonCaption = "Toon boven het lint"; igRibbon.QuickAccessToolbar.ShowBelowRibbonCaption = "Toon onder het lint"; igRibbon.QuickAccessToolbar.MoreCommandsCaption = "[Test] More Commands";
2. Provide your customized strings via a resource file, as described here:
http://help.infragistics.com/NetAdvantage/Silverlight/2011.2/CLR4.0/?page=Customizing_Resource_Strings.html
Hope this helps,
Thanks for your reply.
I was able to customize the resources of the XamGrid using the provided link. I want to do this the same way for the ribbon but it seems not to work!
Could you try the attached solution and check if it works for you? It's important to apply the modified resources using the "RegisterResources()" method prior to initializing the control.
As you can see In the attached sample, I register the customized resource strings before creating the root page (and hence - before creating the Ribbon instance):
In App.xaml.cs:
private void Application_Startup(object sender, StartupEventArgs e){ XamRibbon.RegisterResources("RibbonSample.strings", typeof(MainPage).Assembly); this.RootVisual = new MainPage();}
Dear Georgi,
I found the problem...
You are using different resource key values. I assume you are using the correct ones.
I am using InfragisticsSL4.Controls.Menus.XamRibbon.v11.2.resx as reference towards the key values.
Where can I find the correct one?
It looks like you hit a bug in our Silverlight installer here, dropping incorrect resource file for the XamRibbon control. In fact, the resource keys you're seeing are for the WPF XamRibbon.
Attached you can find a zipped .resx file with the correct keys for the Silverlight XamRibbon.
Thanks for pointing that out! I'll bring this up with our Release Engineering staff to make sure it's fixed.
Regards,