views:

514

answers:

1

Yi-Lun Luo at Microsoft says:

[C]urrently [the] TabControl doesn't override PrepareContainerForItemOverride, so it won't automatically wrap your data source in TabItems.

So the question is: How do I create my own control that:

  1. Extends the TabControl.
  2. Overrides the PrepareContainerForItemOverride.
  3. Automatically wraps my data source in TabItems or my own TabItemExtended controls?
A: 

There is a good example of a subclassed TabControl is the Prism RI. Make sure to look at Themes\generic.xaml and Shell.xaml for the templates.

Jeremiah Morrill