The Tab control is a common UI element that has been around for some time. It makes a convenient way to organize your window when there is more than could realistically fit and still be comprehensible. Tab Control is easier in Windows Presentation Foundation. Thank to XAML, you can build a tab control from the scratch with markup codes. Two elements play main roles in building a tab control:
Class MainWindow Private Sub CoolTabButton_Click(ByVal sender As Object, ByVal e As RoutedEventArgs) Dim ti As TabItem = TryCast(Tabs1.SelectedItem, TabItem) MessageBox.Show("This is " + ti.Header & " tab") End Sub End Class Now debug the application, you will get follwoing output. Figure 2: Figure 3: Figure 4: Figure 5: TabStripPlacement is an attribute that lets you to change the position of tab strip (default is Top). There are four attribute of TabStripPlacement.
WPF Tab Control in VB.NET
How to use Data Trigger in WPF