WPF tab control

A WPF TabControl contains multiple items (TabItem), just like any tab control, and adding new tabs is quite easy. The following example shows a tab control with two tab items.

However, when you try adding child controls to a TabItem you’ll notice that you can actually add one single child. The following XAML code…