如何更改按钮中的前景图像 [英] How can i change the foreground image in a Button
问题描述
我尝试更改按钮中的前景我尝试使用VS中的属性选项卡但是即使我将前景更改为我的PNG图像它也没有受到影响只有我能在设计器中看到的是空白按钮。如何更改按钮的前景?
Dileepa S. Rajapaksa
------------------------ ---------
见习开发人员
微软,斯里兰卡
---- ------------
Twitter:@dsrajapaksa
博客:http://www.dileepatech.net
I tried to change a Foreground in Button i tried it using properties tab in VS but even i change the Foreground to my PNG image it didn't get affected only i can see in designer is blank button. How can i change the foreground of the button?
Dileepa S. Rajapaksa
---------------------------------
Trainee Developer
Microsoft, Sri Lanka
----------------
Twitter : @dsrajapaksa
Blog : http://www.dileepatech.net
推荐答案
您好Astro,
Hi Astro,
前景属性是用于文本的颜色。还有一个背景属性:
the Foreground-Property is for the color of the text. There's also a Background-Property:
<Button Background="Yellow" Foreground="Red" Content="Yes, it works"/>
这篇关于如何更改按钮中的前景图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!