Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1935
How to databind Label-attribute on Field-tag
posted

I'm implementing multilanguage in my program which is using the XamDataGrid.

But, I'm having some trouble with binding the Label-attribute of the Field-tag to a property.

 

XAML:

 <igDP:FieldLayout Key="master">
                    <igDP:Field Name="ShortName" Label="{Binding Test}" />
                    <igDP:Field Name="Name" Label="Name" />
                    <igDP:Field Name="Min" Label="Minimum" />
                    <igDP:Field Name="Prob" Label="Probably" />
                    <igDP:Field Name="Max" Label="Max" />
                    <igDP:Field Name="Mean" />
                    <igDP:Field Name="Calcs" />
                </igDP:FieldLayout>

C#:

public string Test
        {
            get { return "Test"; }
        }

 

The (very simple) binding works perfectly on other WPF-controls such as a Button. But why doesn't it work on the XamDataGrid Field?