WPF复选框"X"颜色 [英] WPF Checkbox 'X' Colour

查看:86
本文介绍了WPF复选框"X"颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我仅需要(或至少我想过)一些帮助,即可更改为X的颜色或将复选框的选中标记更改为#FF2C46B6"的颜色.一切看起来都很令人费解,我希望有人能够通过简单的XAML或代码来做到这一点.

欢呼雀跃,

Jib.

Hey all,

I need some help simply (or at least I thought) to change to colour of the X or check mark of a checkbox to colour "#FF2C46B6". It all looks very convoluted and I was hoping someone had a simple bit of XAML or code to do this.

Cheers all,

Jib.

推荐答案

您必须更改复选框的样式和/或模板.我将从默认样式和模板开始(您可以从Microsoft网站获得它(或通过使用表达式blend),然后更改默认模板中的适当属性.以下是可下载样式的链接:

http://code.msdn.microsoft.com/wpfsamples [向我显示模板 [ Style Snooper [
You have to change the style and/or template for the checkbox. I would start with the default style and template (you can get it off the Microsoft site (or by using expression blend), and change the appropriate attribute in the default template. Here''s a link to the downloadable styles:

http://code.msdn.microsoft.com/wpfsamples[^]

There are also 3rd party tools that let you get this info.

Show Me The Template[^]

Style Snooper[^]


这篇关于WPF复选框"X"颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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