Organizing User Interfaces with the TabControl Control

The TabControl enables you to split an area into tabs. Each tab is represented by a TabItem object, and tabs are enclosed within a TabControl.TabItems collection. The following code demonstrates how you can implement a TabControl with both standard and customized tabs:

<TabControl>    <TabControl.Items>        <TabItem Header="Tab1">            <!-- Nest your controls here.. -->        </TabItem>        <TabItem Foreground="Blue"                 Background="Orange">            <TabItem.Header>                <StackPanel Orientation="Horizontal">                    <TextBlock Text="Tab2"/>                    <!-- Replace with a valid image -->                    <Image ...

Get Visual Basic 2015 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.