TabControl

xDockTab is used as the root/parent of the main module and anytime a tabItem may be docked.

xTabControl is more lightweight. It can be used with the option “ShowTabs” on false to overlay panels.

Both controls trigger the same events: TabChanging, tabChanged, have selectedIndex, selectedItem etc.

The following example shows how to display a certain control (in this case DataGrid), depending on the value of a RadioButton.

  • Add TabControl on the Grid

  • Add one TabItem for each control (DataGrid) that wants to be displayed.

  • Hide (if needed) Tab Headers by unchecking ShowTabs option

  • Make TabControl visible according to selected RadioButton-value

Last updated