Overriding font size #3603
Unanswered
LukazTrisauskas
asked this question in
Q&A
Replies: 1 comment
-
Hi! Welcome fellow WPF enthusiast! I'll make a guess that the font size you want changed is for If you want to change fontsizes for all text block controls in your window, you can write following xaml: <Window ...>
<Window.Resources>
<Style TargetType="TextBlock">
<Setter Property="FontSize" Value="24" />
</Style>
</Window.Resources>
// Window content I wrote this on my phone, so syntax errors are possible. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm new to WPF and just trying out this toolkit. I've tried to follow the guide on how to override default styles, but can't figure out how to override the font size.
Adding the follow code to the windows properties doesn't have an affect on the font size either.
TextElement.FontSize="11"
orFontSize="11"
. I can easily change theFontFamily
through Window properties, but not the size, which is strange.Any help would be appreciated.
Beta Was this translation helpful? Give feedback.
All reactions