#900 – Changing the Font Used in a TabControl

There are a couple of different ways to change the font used within a TabControl.

You can set font properties on the TabControl itself.  These properties will apply to the fonts used for all controls within the tab control, either on the tab headers, or within the content of a particular tab.

<TabControl Margin="10" FontSize="18">

If you set a font property on a TabItem, that property will apply to both the header and content for just that single tab.

If you want to change font properties just for text used in the header portion of the tab, you can specify the Header as a TextBlock and then set the font properties on that TextBlock.

    <TabControl Margin="10">
                <TextBlock Text="Augustus" FontSize="18"/>


#892 – Changing the Font for Everything within a GroupBox

If you want to change the font used for both the header of a GroupBox, as well as any textual elements within it, you can set font-related properties on the GroupBox itself.

In the example below, the GroupBox on the left does not set font properties:

<GroupBox Header="Roman Dudes" Margin="10">

The GroupBox on the right sets both FontSize and FontFamily:

        <GroupBox Header="Greek Dudes" Margin="10"
                  FontSize="16" FontFamily="Comic Sans MS">

The GroupBox on the right then uses the specified font for both the header and for any Label elements within its boundaries.