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
110
How to change the labelPresenter style on the corresponding cell selected?
posted

The objective is to change the label style on the cell selected which is in the corresponding column. Here's the code sample:

 <Style TargetType="{x:Type igDP:LabelPresenter}">

        <Style.Triggers>

            <DataTrigger Binding="{Binding Path=Field.IsSelected,RelativeSource={RelativeSource Self}}" Value="True">

                <Setter Property="Background" Value="Red"></Setter>

                <Setter Property="FontWeight" Value="Bold"></Setter>

            </DataTrigger>

        </Style.Triggers>

    </Style>

However, when a cell is selected, the corresponding label in the column is not changed. Is there any way to achieve this? Thanks a lot

Parents Reply Children
No Data