Hi,
i have following hierarchical data:
WorkListItem: ... int DocumentCount List of Document Document: string Comment string DocumentState
The Property AutoGenerateField is set "False" so i defined my own FieldLayout. It works, but now i want to bind a Converter which is defined in a style to the children data. What values for Path i have to set , to pass my children properties (Document.State and Document.Comment) to the converter ?
<Style x:Key="DocumentIconStatusStyle" TargetType="{x:Type igDP:CellValuePresenter}"> <Setter Property="Control.Template"> <Setter.Value> <ControlTemplate TargetType="{x:Type igDP:CellValuePresenter}"> <Rectangle> <Rectangle.Fill> <MultiBinding Converter="{StaticResource DocumentStatusIconConverter}"> <Binding Path="?????"/> <Binding Path="?????"/> </MultiBinding> </Rectangle.Fill> </Rectangle> </ControlTemplate> </Setter.Value> </Setter> </Style>
Best regards
Hello,
Thank you for your feedback. I am glad that you resolved your issue and I believe that other community members may benefit from this as well.
Thanks again.
this works perfectly, thank you very much.
I have modified the sample I sent you before, so now it has the functionality you want.
Hope it helps you.
Thanks it works, the converter is called for every child value (for every document) what is correct. But for every converter call I get the whole child collection in the converter value. Is there a possibility to get the current child value the converter is called for ?
Hello Hase,
I have modified the sample further so now it works as you want. Basically I changed the Converter’s Binding’s Path to ParentDataRecord.ChildRecords[0].ChildRecords. Please let me know if this helps you or you need further assistance on this matter.
Looking forward for your reply.