如何在 wpf 中更改图标扩展器 [英] how to change icon expander in wpf

查看:26
本文介绍了如何在 wpf 中更改图标扩展器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法可以将扩展器的图标更改为 +/-,并将白色作为前景色?我到处找,但找不到简单的解决方案.或者更好的是,如何将扩展器图标的颜色更改为白色?我的背景是深色,所以这就是我问的原因.

Is there a way I can change the icon of the expander to +/- with the color white as the foreground color? I've been looking everywhere but cant find a simple solution. Or better yet, how do I change the color of the expander icon to white? My background is a dark color, so this is why I'm asking.

推荐答案

您将需要创建自定义控件模板,请参阅此 CodeProject 文章:http://www.codeproject.com/Articles/248112/Templating-WPF-Expander-Control

You will need to create a custom control template, see this CodeProject article: http://www.codeproject.com/Articles/248112/Templating-WPF-Expander-Control

这篇关于如何在 wpf 中更改图标扩展器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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