Changing the style of a Combo-Box in WPF (in Blend

2019-07-11 05:38发布

I'm having some issues trying to change the look / style of a combo box in Expression Blend / WPF. While there are tutorials out there describing setting styles for buttons, there seem to be a few wrinkles with ComboBox controls.

Can anyone offer any advice, or point me towards good tutorials that cover re-styling something more complex than a button?

2条回答
仙女界的扛把子
2楼-- · 2019-07-11 06:00

Have a look at BeaCostas SolarSytem Listbox it's a lovely piece of work.

查看更多
放荡不羁爱自由
3楼-- · 2019-07-11 06:08

The ComboBox style template has 3 parts to it.

The ContentPresenter you should have come across styling Buttons.

There is a Part_Popup that you should find easy to change properties on and style.

The last part is a ToggleButton, to style that you need to "edit a copy" again and create another new style template for the ToggleButton.

查看更多
登录 后发表回答