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>
HI,
Please let me know if you need further assistance regarding this case.
I was able to get your binding working with a static resource. Your binding will work if placed inside of a CellValuePresenter Template.
I am attaching a sample application that illustrates both bindings.