7
सामग्री के फ़ॉन्ट को बदले बिना TabItem के शीर्षलेख में फ़ॉन्ट कैसे बदलें? जब मैं FontSize
TabItem
में संपत्ति सेट करता हूं तो यह TextBlock
पर फ़ॉन्टसाइज़ को भी बदलता है।सामग्री के फ़ॉन्ट को बदले बिना TabItem के शीर्षलेख फ़ॉन्ट को कैसे बदला जाए?
<Window x:Class="WpfApplication4.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Height="350" Width="525">
<TabControl>
<TabItem Header="item1">
<TextBlock Text="test" Margin="20" />
</TabItem>
<TabItem Header="item2" FontSize="20">
<TextBlock Text="test" Margin="20" />
</TabItem>
</TabControl>
</Window>