How to override ContentControlThemeFontFamily

2020-03-02 08:17发布

is it possible to set a custom font for ContentControlThemeFontFamily in WinRt Applications in the standardstyles.xaml?

do you have any example?

1条回答
The star\"
2楼-- · 2020-03-02 08:47

Create a resource dictionary of your own and override the themes.

<ResourceDictionary.ThemeDictionaries>
    <ResourceDictionary x:Key="Default">
         <FontFamily x:Key="ContentControlThemeFontFamily">Times new roman</FontFamily>
     </ResourceDictionary>
</ResourceDictionary.ThemeDictionaries>
查看更多
登录 后发表回答