i need to create types of Tabitems to my tabcontrol.
each tab will have different content and functionalities (Xaml and code-behind).
For Example, i want to create:
* Customer details tab – with fields of customer detials.
* Configuration tab – fields for configuring the application.
* Statistics tab – table and graphs with statistics.
Sometimes two or three tabs of each tabitem type will be open.
i don’t want to copy paste the TabItem.Content again and again for same customer tab or other.
i want to make a type of tab.
what is the best way to create such tabitem types ?
Usually I store my
TabItemViewModelsin aParentViewModel, and use aDataTemplateto define how each ViewModel should be displayed.