ButtonChrome.RenderPressed == true时使用的画笔

编程入门 行业动态 更新时间:2024-10-26 23:29:33
本文介绍了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

推荐答案

问题是背景很可能是从可视树中继承的.

The problem is that the Background is likely being inherited from up the visual tree.

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

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

更多推荐

ButtonChrome.RenderPressed == true时使用的画笔

本文发布于:2023-11-24 10:00:40,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1624761.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:画笔   ButtonChrome   RenderPressed   true

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!