【发布时间】:2018-09-08 02:21:19
【问题描述】:
所以在快速搜索后我找到了这个解决方案:
我的 Resources 文件夹里有一个名为 Abstract 的文件夹。
<Window.Resources>
<Style x:Key="Abstract">
<Setter Property="Label.FontFamily" Value="Resources/#Abstract" />
</Style>
</Window.Resources>
还有我的Label:
<Label Name="lblValue"
Content="Value"
Style="{DynamicResource Abstract}"
FontSize="14"/>
什么也没发生,我只是看不到我想要的font。
【问题讨论】: