Put Different Objects to TabItem : TabControl « Windows Presentation Foundation « C# / C Sharp

Home
C# / C Sharp
1.2D Graphics
2.Class Interface
3.Collections Data Structure
4.Components
5.Data Types
6.Database ADO.net
7.Date Time
8.Design Patterns
9.Development Class
10.Event
11.File Stream
12.Generics
13.GUI Windows Form
14.Internationalization I18N
15.Language Basics
16.LINQ
17.Network
18.Office
19.Reflection
20.Regular Expressions
21.Security
22.Services Event
23.Thread
24.Web Services
25.Windows
26.Windows Presentation Foundation
27.XML
28.XML LINQ
C# / C Sharp » Windows Presentation Foundation » TabControl 




Put Different Objects to TabItem
Put Different Objects to TabItem
      

<Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      WindowTitle="Canvas Sample">

    <StackPanel>
        <TabControl MinHeight="500" MinWidth="400">
            <TabItem  Header="Canvas" IsSelected="True">
                <Canvas Height="400" Width="400">
                     <Rectangle Width="100" Height="100" Fill="red"/>
                </Canvas>
            </TabItem>
            <TabItem Header="XAML Markup">
                <TextBlock  xml:space="preserve">
                       &lt;&gt;
                </TextBlock>
            </TabItem>

            <TabItem  Header="Description">
                <StackPanel>
                    <TextBlock>Sample</TextBlock>
                </StackPanel>
            </TabItem>
        </TabControl>
        <TextBlock >All rights reserved.</TextBlock>
    </StackPanel>

</Page>

   
    
    
    
    
    
  














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.TabItem HeaderTabItem Header
6.Tab page headersTab page headers
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.
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.