Frame background, TabControl background : TabControl « Windows Presentation Foundation « C# / CSharp Tutorial






<Window
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    x:Class="Microsoft.Samples.Graphics.Transforms.SampleViewer"
    Title="Transformations"
    xmlns:my="clr-namespace:Microsoft.Samples.Graphics.Transforms"
    xmlns:examples="Microsoft.Samples.Graphics.Transforms">

  <DockPanel Background="White">
    <TabControl Background="White"  BorderBrush="Orange">
    
      <TabItem Header="Transform Example">
        <Frame Background="White" Source="TransformExample.xaml">
        </Frame>
      </TabItem>  

      <TabItem Header="RotateTransform Example">
        <Frame Background="White" Source="RotateTransformExample.xaml">
        </Frame>
      </TabItem>  
      
      <TabItem Header="ScaleTransform Example">
        <TabControl>
          <TabItem Header="Basic Examples">
            <Frame Background="White" Source="ScaleTransformExample.xaml" />
          </TabItem>
         <TabItem Header="Animation Example">
            <Frame Background="White" Source="AnimatedScaleTransformExample.xaml" />
          </TabItem>        
        </TabControl>
      </TabItem>
      
      <TabItem Header="SkewTransform Example">
        <TabControl>
          <TabItem Header="Basic Examples">
            <Frame Background="White" Source="SkewTransformExample.xaml" />
          </TabItem>
         <TabItem Header="Animation Example">
            <Frame Background="White" Source="AnimatedSkewTransformExample.xaml" />
          </TabItem>        
        </TabControl>        
      </TabItem>  
      
      <TabItem Header="TranslateTransform Example">
        <Frame Background="White" Source="TranslateTransformExample.xaml">
        </Frame>
      </TabItem>       
      
      <TabItem Header="Interactive MatrixTransform Example">
        <Frame Background="White" Source="InteractiveMatrixTransformExample.xaml">
        </Frame>
      </TabItem>      
      
      <TabItem Header="TransformCollection Example">
        <Frame Background="White" Source="TransformCollectionExample.xaml">
        </Frame>
      </TabItem>       
    
    </TabControl>
  </DockPanel>
</Window>
WPF Frame Background Tab Control Background








24.63.TabControl
24.63.1.Frame background, TabControl backgroundFrame background, TabControl background
24.63.2.TabControl and Frame sourceTabControl and Frame source
24.63.3.Style TabItemStyle TabItem
24.63.4.Style a TabControl using templates for the TabControl and TabItem elements.Style a TabControl using templates for the TabControl and TabItem elements.
24.63.5.TabItem HeaderTabItem Header
24.63.6.Tab page headersTab page headers
24.63.7.Put Different Objects to TabItemPut Different Objects to TabItem
24.63.8.Tab TestTab Test
24.63.9.Binds a TabControl to a collection of Employee objectsBinds a TabControl to a collection of Employee objects
24.63.10.Bind a TabControl to a data sourceBind a TabControl to a data source
24.63.11.Use a GroupBox control to create a container for a TabControl.Use a GroupBox control to create a container for a TabControl.