WPF global font size

前端 未结 10 719
别跟我提以往
别跟我提以往 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 08:47

    Application.Current.MainWindow.FontSize = _appBodyFontSize;
    

    This way you can change the Font Size at run time also.

提交回复
热议问题