This project has moved. For the latest updates, please go here.

CheckComboBox SelectedValue Text Foreground color

Jun 29, 2015 at 12:04 PM
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}">
        <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
Developer
Jun 30, 2015 at 12:15 PM