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
700
Accessing child values in Styles
posted

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