7
콘텐츠의 글꼴을 변경하지 않고 TabItem의 머리글에서 글꼴을 변경하는 방법은 무엇입니까? FontSize
속성을 TabItem
에 설정하면 글꼴 크기가 TextBlock
s로 변경됩니다.콘텐츠의 글꼴을 변경하지 않고 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>