在WPF中更改组合框的样式(最好在Blend中) [英] Changing the style of a Combo-Box in WPF (in Blend preferably)

查看:48
本文介绍了在WPF中更改组合框的样式(最好在Blend中)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在更改Expression Blend / WPF中组合框的外观/样式时遇到一些问题。虽然有一些教程描述了按钮的设置样式,但ComboBox控件似乎有些皱纹。

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?

推荐答案

ComboBox 样式模板有3种

您应该遇到 ContentPresenter 样式按钮。

有一个 Part_Popup ,您应该容易更改其属性和样式。

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

最后一部分是 ToggleButton ,以设置样式,您需要再次编辑副本并为ToggleButton创建另一个新样式模板。

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.

这篇关于在WPF中更改组合框的样式(最好在Blend中)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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