How to set the default font for a WPF application?

后端 未结 6 747
野的像风
野的像风 2020-12-04 11:16

I want to be able to define a font family for my WPF application. Preferably using a resource dictionary as a theme referenced from App.xaml. I\'ve tried creati

6条回答
  •  隐瞒了意图╮
    2020-12-04 11:29

    One simple way to do it programmatically:

    public MainWindow()
    {
        this.FontFamily = new FontFamily("Segoe UI");
    }
    

提交回复
热议问题