How to set the default style for tabitem in a tabcontrol's style

后端 未结 2 893
梦毁少年i
梦毁少年i 2021-02-08 07:21

I\'m creating a specific style for some TabControl in my application.



相关标签:
2条回答
  • 2021-02-08 07:56

    put style for target type TabItem as a implicit style under your MyTabItem style resource

    <Style TargetType="TabControl" x:Key="TabControlStyle">
                <Style.Resources>
                    <Style TargetType="TabItem">
    
                    </Style>
    
    0 讨论(0)
  • 2021-02-08 07:57
    <TabControl ItemContainerStyle="{StaticResource MyTabItem}"/>
    
    0 讨论(0)
提交回复
热议问题