I would like to use TabControl as the main navigation in the application I'm working on. Therefore, I would like to make the font in the TabItems headers larger and also give it a different background color. However, I do not want this to be inherited. For example, if I use this code:
<TabControl FontSize="18pt"> <TabItem Header="Tab 1"> <Button>Button 1</Button> </TabItem> </TabControl>
The font in the button is also large. I know that this is the normal behavior of a dependency property because the property is inherited, but that is not what I want in this case. I would like to modify TabItems without changing anything in the children. Is it impossible? Since resetting all child defaults is PITA.
Thank you for your time.
source share