【WPF收藏】隐藏TabControl标签(按钮)的方法(Hide the TabStrip of a TabControl)

隐藏TabControl标签(按钮)的方法,在XAML文档中:

   <TabControl ...>
      <TabControl.ItemContainerStyle>
        <Style TargetType="{x:Type TabItem}">
          <Setter Property="Visibility" Value="Collapsed" />
        </Style>
      </TabControl.ItemContainerStyle>
      <TabItem ... />
      <TabItem ... />
    </TabControl>

源文: http://social.msdn.microsoft.com/Forums/zh-SG/wpf/thread/c84efe64-c2da-4ca9-bd55-a00507a27ba2

你可能感兴趣的:(文档,WPF,setter)