Hi,
I am getting some trouble Datafield localization. I do not find my answer in the documentation.
Following the documentation of DataForm, in "Defining Labels and Field Order", there is : "By default all editor fields are labeled by taking the name of the corresponding property on the source object. In most of the real-life scenarios you will need to change the labels with more friendly ones or event localize them. You can define custom labels by using the FieldInfo attribute as shown in the code snippet below"
However in C# I do not know how to localize as the string in the example is in plain text in a decorative field.
Just below it is stated in paragraph Labels and XAML :"If you need to localize your labels you can define them in XAML. This is explained in the DataForm and XAMLs ection."
So in the documentation page "Using RadDataForm in XAML", I bet the concerned paragraph is at the bottom called "Defining Attributes for Data Fields in XAML
You can use the DataField.AttributeSet property to define property attributes for the property associated with a given DataField. For example, an alternative way to define the FieldInfo attribute is shown below"
However I cannot make the Binding working. I get an System.Windows.Markup.XamlParseException in System.Windows.ni.dll {"Object of type 'System.Windows.Data.Binding' cannot be converted to type 'System.String'."}
cf screenshots
Please, can you help me how to localize Datafield labels ?
Thanks in advance !