WPF中的默认按钮颜色 [英] Default Button Color in WPF
本文介绍了WPF中的默认按钮颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
任何人都可以给我打电话给VS中的默认按钮颜色。实际上我使用一个按钮,我点击它应该更改为一种特定的颜色,如果我发布它应该回到它的默认VS按钮颜色..
注意:
我不想在这里使用ToggleButton ..所以请给我一些关于它的信息..
Hi can anyone tel me wats the default button colour in VS..Actually im using a button,wen i click it should change to one specific color and wen i release it should go back to its default VS button color..
Note:
I dont want to use ToggleButton here..So pls provide me some info abt tat color..
推荐答案
<LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
<GradientStop Color="#FFF3F3F3" Offset="0"/>
<GradientStop Color="#FFEBEBEB" Offset="0.5"/>
<GradientStop Color="#FFDDDDDD" Offset="1"/>
</LinearGradientBrush>
供将来参考您可以使用Blend或 Snoop 等实用程序找到此类信息[ ^ ]
For future reference you can find such information by either using Blend or a utility like Snoop[^]
这篇关于WPF中的默认按钮颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文