本文介绍了ButtonChrome.RenderPressed == true时使用的画笔的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道ButtonChrome用于其各种状态的画笔.我尝试将ButtonChrome放在窗口中,然后在调试中断时查看其Background属性.即使内部涂有某种东西,背景也为空.如何 我可以确定使用的刷子吗?

I want to know the brushes used by ButtonChrome for its various states. I tried placing a ButtonChrome in a window, then looking at its Background property in debug break. The background was null, even though the interior was painted with something. How can I determine the brushes used?

账单

Bill Swartz

Bill Swartz

推荐答案

我(个人)只是使用Snoop( http://snoopwpf.codeplex.com/)在运行时进行检查,然后获取画笔设置.  我发现它比我自己处理它容易得多.

I (personally) just use Snoop (http://snoopwpf.codeplex.com/) to inspect it at runtime, and get the brush settings.  I find it far easier than handling it myself.


这篇关于ButtonChrome.RenderPressed == true时使用的画笔的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-30 06:16