【发布时间】:2013-02-19 16:05:10
【问题描述】:
我正在使用 xaml/c# 开发 Windows 8 应用程序。
我需要更改PageHeaderTextStyle(在 StandardStyles.xaml 中定义)。
这是我的PageHeaderTextStyle 定义:
<Style x:Key="PageHeaderTextStyle" TargetType="TextBlock" BasedOn="{StaticResource HeaderTextStyle}">
<Setter Property="TextWrapping" Value="NoWrap"/>
<Setter Property="VerticalAlignment" Value="Bottom"/>
<Setter Property="Margin" Value="0,0,30,40"/>
<Setter Property="Foreground" Value="White"/>
</Style>
如何以编程方式将Foreground 属性更改为“黑色”?
【问题讨论】:
标签: c# xaml windows-8 windows-store-apps windows-store