Hello,
I'm trying to localize the labels on the xamdatagrid using the Loc extension method.
<igDP:XamDataGrid.FieldLayouts> <igDP:FieldLayout> <igDP:FieldLayout.Fields> <igDP:Field Name="AColumn" Label="{Loc myCustomLabel}"/> </igDP:FieldLayout.Fields> </igDP:FieldLayout></igDP:XamDataGrid.FieldLayouts>
Name space in xaml code:
LocalizationScope.ResourceManager="{ResourceManager AssemblyName=Project.Test, BaseName=Project.Test.Resource.TestWindowResources}"
I searched the 2016.1 documentation. It suggests to register the resource file using RegisterResources method. However this method is not available for xamdatagrid.
Any idea on this issue ?
Thank you
Hey Andrew,
That's not what I'm looking. I need a way to switch the labels language based on the culture. Localization support that. However it is not working on the xamdatagrid labels.
Since you are not familiar with localization, I would like to speak to someone who have worked with localization or you can communicate the info.
We are at a critical stage of development, we need to find a solution for this issue.
Thank you for you help
Hello User101,
I am not particularly familiar with this "Loc" extension method that you are defining or referring to, but the RegisterResources method for the resource files of the XamDataGrid is not going to work here, as that method is only available for the Infragistics "shared" WPF controls. That is, the controls that have a shared code-base between Silverlight and WPF.
For the WPF specific controls, such as the XamDataGrid, you will need to use the Customizer for that particular class. You can read further about using the Customizer for the XamDataGrid resource strings at the following articles and forum threads that discuss this issue:
Customizing Resources for WPF Only Controls: http://help.infragistics.com/Help/Doc/WPF/2015.1/CLR4.0/html/GeneralConcepts_Customizing_Resource_Strings_for_WPF_Only_control.html.
XamDataGrid Localization (forum): http://www.infragistics.com/community/forums/t/97070.aspx.
Please let me know if you have any other questions or concerns on this matter.
Sincerely,AndrewAssociate Developer
Did someone had a chance to look at my question ?