Best way to set application-wide FontSize? #7539
-
Hi, I'd like to set an application-wide default font-size. What's the best way to do this? Currently, this seems to work in the App.axaml:
However, it sets everything and I have difficulty overriding it for certain controls. Is there a better way? |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 5 replies
-
Set FontSize on a Window. It will be inherited. |
Beta Was this translation helpful? Give feedback.
-
Thanks. However, Window.FontSize is not picked up by buttons, edit/check boxes or menu items. In fact, only TextBlock seems to inherit Window.FontSize. (Am on Linux, Fedora, Wayland) |
Beta Was this translation helpful? Give feedback.
-
Cheers, any ideas on how one could change the application font size with Fluent? |
Beta Was this translation helpful? Give feedback.
-
Overriding SystemControlForegroundBaseHighBrush resource will work.
In global resource dictionary (in the App.xaml for example). |
Beta Was this translation helpful? Give feedback.
-
I'll give it a shot. Thank you. |
Beta Was this translation helpful? Give feedback.
-
thanks everyone |
Beta Was this translation helpful? Give feedback.
Overriding SystemControlForegroundBaseHighBrush resource will work.
Put
In global resource dictionary (in the App.xaml for example).