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
840
Field Label binding in XAML
posted

Hi

Please consider the following:

 

 

 

 

 

<igDP:XamDataGrid.FieldLayouts>

 

 

 

<igDP:FieldLayout >

 

 

 

<igDP:FieldLayout.Fields>

 

 

 

 

 

 

 

<igDP:Field Name="Name" Label="{Binding Path=ModeAlt, Mode=OneWay, PresentationTraceSources.TraceLevel=High}">

<igDP:Field.Settings>

 

 

 

<igDP:FieldSettings AllowEdit="False" AllowGroupBy="False" AllowResize="True" CellClickAction="SelectRecord" />

 

 

 

</igDP:Field.Settings>

 

 

 

</igDP:Field>

 

 

</igDP:FieldLayout.Fields>

 

 

</igDP:FieldLayout>

 

 

</igDP:XamDataGrid.FieldLayouts>

When the above code is used, I get a binding error in me immediates window saying:

Cannot find governing FrameworkElement or FrameworkContentElement for target element

Has anyone  successfully bound a DtaPresenter Field.Label to a dependency property?

 

Thanks

 

PS.. this forum is still nasty as anything for pasting code... so much for pleasent user experiences! :o)