How to set the default font for a WPF application?

后端 未结 6 746
野的像风
野的像风 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:30

    Actually you can get a full XAML solution combining some of the other answers here.

    If your main window is called WinMain (the one you load before all others), just add a reference to a style named e.g. WinAll

    
    

    and then define your style this way

    
    

提交回复
热议问题