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
255
How can I change the 'Visibility' property of one Field with one DataTrigger ?
posted

Hello,

I want to modifiy the Visibility property using a DataTrigger,

the reason is because sometimes i need to put

 <igDP:Field Name="prueba" Visibility="Collapsed"

and other times:

 <igDP:Field Name="prueba" Visibility="Visible"

Thanks,

Parents
No Data
Reply
  • 255
    posted

    Hello,

    I want to do something like this but it doesn't work:

                    <igDP:Field Name="Excepciones" >
                                <igDP:Field.Settings>
                                    <igDP:FieldSettings >
                                        <igDP:FieldSettings.CellPresenterStyle >
                                            <Style>
                                                <Style.Triggers>
                                                    <DataTrigger Binding="{Binding Path=DataItem, Converter={StaticResource ConvTieneHijos}}" Value="True">
                                                        <Setter Property="Visibility" Value="True" />
                                                    </DataTrigger>
                                                    <DataTrigger Binding="{Binding Path=DataItem, Converter={StaticResource ConvTieneHijos}}" Value="False">
                                                        <Setter Property="Visibility" Value="False" />
                                                    </DataTrigger>
                                                </Style.Triggers>
                                            </Style>
                                         </igDP:FieldSettings.CellPresenterStyle >
                                    </igDP:FieldSettings>
                               </igDP:Field.Settings>
                    </igDP:Field>

Children