Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 Windows Phone 8 中,如何获取按钮的背景颜色属性?
<Button x:Name="btn" HorizontalAlignment="Left" Background="#FFF30808"/>
好的。不知道这是否是最快的方法,但它是
Color MyColor = ((SolidColorBrush)btn.Background).Color;