title: tab control data template
body: <p>I want a TabControl where each tab item represents a (Employee)ViewModel; the header should be the DisplayName property of that view model, and the content should be a user control (EmployeeDetailsView) that has a data context of the view model.</p>
  
  <p>So pidgeon xaml (is there such a thing??):</p>
  
  <pre><code>&lt;TabControl x:Name="Items"&gt;
      &lt;TabItem Header="DisplayName" Content=local:EmployeeDetailsView /&gt;
  &lt;TabControl&gt;
  </code></pre>
  
  <p>What should my real XAML look like?</p>
  
  <p>Cheers,<br>
  Berryl</p>
  
  <h1>EDIT for Vortex</h1>
  
  <pre><code>        &lt;TabControl x:Name="Items" &gt;
              &lt;TabControl.ItemTemplate&gt;
                  &lt;DataTemplate&gt;
                      &lt;TextBlock Text="{Binding DisplayName}" /&gt;
                  &lt;/DataTemplate&gt;
              &lt;/TabControl.ItemTemplate&gt;
              &lt;TabControl.ContentTemplate&gt;
                  &lt;DataTemplate&gt;
                      &lt;ContentControl&gt;
                          &lt;local:EmployeeDetailView/&gt;
                      &lt;/ContentControl&gt;
                  &lt;/DataTemplate&gt;
              &lt;/TabControl.ContentTemplate&gt;
           &lt;/TabControl&gt;
  </code></pre>