WPF ComboBox: background color when disabled

Posted by Martin on Stack Overflow See other posts from Stack Overflow or by Martin
Published on 2010-03-05T17:56:50Z Indexed on 2010/05/06 6:38 UTC
Read the original article Hit count: 883

Filed under:
|
|
|

I currently use this style for my ComboBox in WPF:

    <Style TargetType="ComboBox">
        <Setter Property="Foreground" Value="White"/>
        <Setter Property="Background" Value="#303030"/>
        <Setter Property="BorderBrush" Value="#000000"/>
    </Style>

How can I change it to specify the background color when the ComboBox is disabled?

(this is a follow-up to this question: http://stackoverflow.com/questions/2385205/wpf-combobox-colors)

© Stack Overflow or respective owner

Related posts about wpf

Related posts about color