无法在鼠标悬停上设置WPF ComboBox的样式
问题描述:
有没有人知道当鼠标悬停在WPF ComboBox上面时,如何调整WPF ComboBox的背景属性?
Does anyone know how to style the background property of a WPF ComboBox when a mouse is hovering on top of it?
我无法摆脱blue-ish按钮像背景ComboBox。
I cannot get rid of the blue-ish button like background off the ComboBox.
答
它不会工作。这是因为ComboBox的默认控制模板。您可能需要重写默认模板有关此行为。请观看
It will not work.Its because of the default control template of ComboBox.You may need to override the default template for this behavior.Have a look at
MouseOver高亮显示样式恢复为默认第二个(Caused by Aero?)
http://social.expression.microsoft.com/Forums/en/blend/thread/b210978c-24e8-431b-916b-a40a752b990c
http://social.msdn.microsoft.com/Forums/en/wpf/thread/a18891e9-8879-4819-9679-247341782f60