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,
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,
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?
Thank you for the example. It works in your app but does not in mine...
I have a multi-language app. And yes the supported cultures are enabled in csproj file. As I mentioned before it works on the XamGrid but not on the ribbon! See screenshots. Thye are using the same resource file and are registered at the same place. However the ribbon QAT has not been translated but the grid is. As you can see on the screenshots.
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();}
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!