MouseOver highlighting style returning to default after a second (Caused by Aero?)

后端 未结 2 452
刺人心
刺人心 2020-12-22 03:38

I\'d trying to style my ComboBoxes to match the rest of the UI but I\'m having problems with the IsMouseOver highlighting. It highlights with the color I specify for a secon

2条回答
  •  别那么骄傲
    2020-12-22 04:10

    You can override this behavior by getting a copy of the default template from the WPF Visual Studio Designer and then in the ComboBoxReadonlyToggleButton style comment out the ButtonChrome section and replace it with a Border. Here is a link to the site where I found the solution - http://www.scriptscoop.net/t/d346cf01d844/c-c-wpf-combobox-mouse-over-color.html

    Here is my code snippet