TabItem Header : TabControl « Windows Presentation Foundation « C# / C Sharp






TabItem Header

TabItem Header
    

<Window x:Class="SimpleStyles.Window1"
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  Title="SimpleStyles"
  Background="#F8F8F8">
  <ScrollViewer>
    <WrapPanel>
      <HeaderedItemsControl Header="TabControl">
        <StackPanel Orientation="Horizontal">
          <TabControl Margin="8" Height="100" Width="225">
            <TabItem Header="One" />
            <TabItem Header="Two" />
            <TabItem Header="Three" />
            <TabItem Header="Four" />
          </TabControl>
        </StackPanel>
      </HeaderedItemsControl>
   
    </WrapPanel>
  </ScrollViewer>
</Window>

   
    
    
    
  








Related examples in the same category

1.Frame background, TabControl background
2.TabControl and Frame source
3.Style TabItemStyle TabItem
4.Style a TabControl using templates for the TabControl and TabItem elements.Style a TabControl using templates for the TabControl and TabItem elements.
5.Tab page headersTab page headers
6.Put Different Objects to TabItemPut Different Objects to TabItem
7.Tab TestTab Test
8.Binds a TabControl to a collection of Employee objectsBinds a TabControl to a collection of Employee objects
9.Bind a TabControl to a data sourceBind a TabControl to a data source
10.Use a GroupBox control to create a container for a TabControl.Use a GroupBox control to create a container for a TabControl.