无法在鼠标悬停上设置WPF ComboBox的样式 [英] Unable to style WPF ComboBox on Mouse Hover

查看:448
本文介绍了无法在鼠标悬停上设置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

这篇关于无法在鼠标悬停上设置WPF ComboBox的样式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆