Using the TabControl


show more Using the TabControl provides you with in-depth training on Developer. Taught by Walt Ritscher as part of the Silverlight 5 Essential Training show less
please wait ...

Using the TabControl

A Tab Control is a staple in UI development. It allows you to create sub-pages within your main UI. For this demo I am going to use a project called UsingTabControl, and I've already opened MainPage.xaml. This UI contains one Tab Control with two Tab items. You can see them here in the Designer. If I click on the items in the Designer it switches my view. It also switches the XML view on the bottom-half of the screen, watch there. I'm on line 37, I am going to click on this first Tab and it moves me to line 25.

Here is the actual Tab Control; it contains two children items, tabItem1 and tabItem2. Tab items can contain any valid UI. In this first tab item I have a StackPanel with two images, and in the second tab item I have a DockPanel with some buttons docked to the different sides. The Tab Control itself has one interesting property I want to show you, which is called the TabStripPlacement. It does what you'd expect, right now the TabStrip is at the top. If I choose bottom it ...

Using the TabControl
Video duration: 2m 17s 8h 52m Beginner

Viewers:

Using the TabControl provides you with in-depth training on Developer. Taught by Walt Ritscher as part of the Silverlight 5 Essential Training

Subject:
Developer
Software:
Silverlight Visual Studio
Author:
please wait ...