
[英]How to change the background color of button in windows phone application?
[英]In Windows Phone 8, How can i get the Background Color property of a button?
在Windows Phone 8中,如何获取按钮的背景颜色属性?
<Button x:Name="btn" HorizontalAlignment="Left" Background="#FFF30808"/>
好。 不知道这是否是最快的方式,但现在就是这样
Color MyColor = ((SolidColorBrush)btn.Background).Color;
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.