How to override ContentControlThemeFontFamily

2020-03-02 08:00发布

问题:

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

do you have any example?

回答1:

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>