WPF global font size

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

    TextElement.FontSize is an inherit property, which means you can simply set the font size at root element, and all the children elements will use that size (as long as you don't change them manually)

提交回复
热议问题