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
280
Databind [Unbound]Field.Label problem
posted

I'm trying to use databinding for the Label property of Field and UnboundFields (for localization purposes), but cannot seem to get it to work.

 

<igDP:UnboundField  ... Label="{Binding Foo,Mode=OneWay,diagnostics:PresentationTraceSources.TraceLevel=High}" >

System.Windows.Data Warning: 52 : Created BindingExpression (hash=21491730) for Binding (hash=41525666)
System.Windows.Data Warning: 54 :   Path: 'Foo'
System.Windows.Data Warning: 57 : BindingExpression (hash=21491730): Default update trigger resolved to PropertyChanged
System.Windows.Data Warning: 58 : BindingExpression (hash=21491730): Attach to Infragistics.Windows.DataPresenter.UnboundField.Label (hash=46461814)
System.Windows.Data Warning: 60 : BindingExpression (hash=21491730): Use Framework mentor <null>
System.Windows.Data Warning: 63 : BindingExpression (hash=21491730): Resolving source
System.Windows.Data Warning: 65 : BindingExpression (hash=21491730): Framework mentor not found
System.Windows.Data Warning: 61 : BindingExpression (hash=21491730): Resolve source deferred
System.Windows.Data Warning: 63 : BindingExpression (hash=21491730): Resolving source
System.Windows.Data Warning: 65 : BindingExpression (hash=21491730): Framework mentor not found
System.Windows.Data Warning: 63 : BindingExpression (hash=21491730): Resolving source
System.Windows.Data Warning: 65 : BindingExpression (hash=21491730): Framework mentor not found
System.Windows.Data Warning: 63 : BindingExpression (hash=21491730): Resolving source  (last chance)
System.Windows.Data Warning: 65 : BindingExpression (hash=21491730): Framework mentor not found
System.Windows.Data Error: 2 : Cannot find governing FrameworkElement or FrameworkContentElement for target element. BindingExpression:Path=Foo; DataItem=null; target element is 'UnboundField' (HashCode=46461814); target property is 'Label' (type 'Object')

 

Ultimately I'd like to get it to work using a markup extension, but a normal binding would be good enough.