Possibly the easiest way to do this is to add a resource file and set the size, and font in there. Here's an example ResourceDictionary that you can use:
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<Style TargetType="{x:Type TextBlock}">
<Setter Property="FontSize" Value="32" />
<Setter Property="FontFamily" Value="Verdana" />
</Style>
<Style TargetType="{x:Type Control}" x:Key="fontStyling">
<Setter Property="FontSize" Value="32" />
<Setter Property="FontFamily" Value="Verdana" />
</Style>
<Style TargetType="{x:Type Label}" BasedOn="{DynamicResource fontStyling}" />
<Style TargetType="{x:Type TextBox}" BasedOn="{DynamicResource fontStyling}" />
<Style TargetType="{x:Type ListView}" BasedOn="{DynamicResource fontStyling}" />
</ResourceDictionary>
You just need to add this is a reference to your app.xaml and you are good to go - it will be picked up throughout your project.
You may be wondering why I declared
TextBlock
separately from
Control
. This is because
TextBlock
does not derive from
Control
, so you can't use
Control
as a base style for the
TextBlock
.