This project has moved and is read-only. For the latest updates, please go here.

CheckComboBox SelectedValue Text Foreground color

Jun 29, 2015 at 1:04 PM

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}">
            <DataTrigger Binding="{Binding IsSelected, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type DataGridRow}}}" Value="True">                   
                <Setter Property="Background" Value="#3399FF"/>
                <Setter Property="Foreground"  Value="White"/>

Thank you,
Jun 30, 2015 at 1:15 PM