【发布时间】:2010-03-05 07:35:03
【问题描述】:
我通过将 Style 添加到 App.xaml 来更改我的应用程序中所有 ComboBoxes 的外观:
<Style TargetType="ComboBox">
<Setter Property="Foreground" Value="White"/>
<Setter Property="Background" Value="#303030"/>
<Setter Property="BorderBrush" Value="#000000"/>
</Style>
有两种颜色我无法设置:
1)BackgroundIsEnabled=false时的颜色
2) 当鼠标悬停在ComboBox 上时,突出显示Background 的颜色。
如何更改这两种颜色?
[编辑:看起来高亮颜色与鼠标悬停颜色不同,因为当我将鼠标移到ComboBox 上时,它会短暂地转动我定义为鼠标悬停颜色的颜色,然后转动变成其他颜色(浅蓝色)]
【问题讨论】: