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
625
XamDataGrid Unboundfield multi binding {DependencyProperty.UnsetValue}
posted

I have a XamDataGrid which has an unboundfield made of a multi binding. I am trying to include a local variable in the multi binding but am getting {DependencyProperty.UnsetValue} returned. The RelativeSource does not seem to be able to find the parent Window.

The unboundfield is:

<igWPF:UnboundField Name="MyField">

<igWPF:Field.Settings>

<igWPF:FieldSettings CellValuePresenterStyle="{StaticResource CustomFieldCell}"></igWPF:FieldSettings>

</igWPF:Field.Settings>

<igWPF:UnboundField.Binding>

<MultiBinding Converter="{StaticResource MyConverter}">

<Binding Path="." RelativeSource="{RelativeSource FindAncestor, AncestorType={x:Type Window}}"></Binding>  

</MultiBinding>

</igWPF:UnboundField.Binding> 

</igWPF:UnboundField>