Hello,
I'm using a CheckComboBox inside a datagrid and when the row is selected I want to change the Background color and th SelectedValue Text Color.
For this I have added the trigger section to change the colors. The background is changing but the Display Selected Items text is not. Below is the code that I'm using, can you please let me know how I can achieve this?
<Style TargetType="{x:Type xctk:CheckComboBox}">
Dragos
I'm using a CheckComboBox inside a datagrid and when the row is selected I want to change the Background color and th SelectedValue Text Color.
For this I have added the trigger section to change the colors. The background is changing but the Display Selected Items text is not. Below is the code that I'm using, can you please let me know how I can achieve this?
<Style TargetType="{x:Type xctk:CheckComboBox}">
<Style.Triggers>
<DataTrigger Binding="{Binding IsSelected, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type DataGridRow}}}" Value="True">
<Setter Property="Background" Value="#3399FF"/>
<Setter Property="Foreground" Value="White"/>
</DataTrigger>
</Style.Triggers>
</Style>
Thank you,Dragos