WPF global font size

前端 未结 10 710
别跟我提以往
别跟我提以往 2020-12-02 08:43

I\'m creating a WPF app and I would like to know the best way to be able to change the font size for every element in the ui. Do I create a resource dictionary and set Style

10条回答
  •  渐次进展
    2020-12-02 09:03

    Another option is to define the FontFamily and FontSize as resources.

    Calibri
    12
    

    That way you can use them in your setters.

提交回复
热议问题