Click here to Skip to main content
15,942,710 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how to change the color of drop down button of combo box in wpf?the combo box is appearing blue color default in windowxp. please do the needful to me .

1 solution

<Style TargetType="{x:Type ComboBoxItem}">
            <Setter Property="Background">
                    <LinearGradientBrush EndPoint="0,1" StartPoint="0,0">
                        <GradientStop Color="#FF3A60AD" Offset="0.528"/>
                        <GradientStop Color="#FF6A85D8" Offset="0.01"/>
                        <GradientStop Color="#FF3464C4" Offset="1"/>
                        <GradientStop Color="#FF202E7E" Offset="1"/>

You can add a style to target All comboBox Item, which is what is given in my example. Alternatively, you can individually brush each item by modifying each items individual properties.
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900