#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">

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

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">
        <TabItem>
            <TabItem.Header>
                <TextBlock Text="Augustus" FontSize="18"/>
            </TabItem.Header>

900-003

Advertisement

About Sean
Software developer in the Twin Cities area, passionate about software development and sailing.

One Response to #900 – Changing the Font Used in a TabControl

  1. Pingback: Dew Drop – September 5, 2013 (#1,618) | Morning Dew

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: