How to override ContentControlThemeFontFamily

怎甘沉沦 提交于 2019-11-30 05:35:43

问题


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>


来源:https://stackoverflow.com/questions/12227669/how-to-override-contentcontrolthemefontfamily

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!