8,735
社区成员
发帖
与我相关
我的任务
分享
<DataTemplate x:Key="HeaderPanel">
<StackPanel Orientation="Vertical">
<Image Width="32" Height="32" Source="{Binding HeaderBackground}" FocusVisualStyle="{x:Null}"></Image>
<Button Content="{Binding HeaderText}" Width="60" />
</StackPanel>
</DataTemplate>
<TabControl.Resources>
<Style TargetType="TabItem">
<Setter Property="HeaderTemplate" Value="{StaticResource HeaderPanel}" />
<Setter Property="Width" Value="90" />
<Setter Property="Height" Value="60" />
</Style>
</TabControl.Resources>