Quantcast
Channel: wpftoolkit Discussions Rss Feed
Viewing all articles
Browse latest Browse all 2157

New Post: CheckComboBox SelectedValue Text Foreground color

$
0
0
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

Viewing all articles
Browse latest Browse all 2157

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>