title: Infragistics TabControl inherit template
body: <p>I am using infragistics wpf tabcontrol controls. Look at the following code snippet.</p>
  
  <p>XAML</p>
  
  <pre><code>&lt;Window x:Class="DynamicTabControl.MainWindow"
          xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
          xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
          xmlns:igWindows="http://infragistics.com/Windows"
          xmlns:igDP="http://infragistics.com/DataPresenter"
          Title="MainWindow" Height="350" Width="525"&gt;
      &lt;Grid&gt;
          &lt;igWindows:XamTabControl Name="xamTabCtrl" ItemsSource="{Binding Collection}" Theme="Metro"&gt;
              &lt;igWindows:XamTabControl.ItemTemplate&gt;
                  &lt;DataTemplate &gt;
                      &lt;Label Content="{Binding Header}" /&gt;
                  &lt;/DataTemplate&gt;
              &lt;/igWindows:XamTabControl.ItemTemplate&gt;
              &lt;igWindows:XamTabControl.ContentTemplate&gt;
                  &lt;DataTemplate&gt;
                      &lt;igDP:XamDataGrid Theme="Metro"
                    DataSource="{Binding Logins}"/&gt;
                  &lt;/DataTemplate&gt;
              &lt;/igWindows:XamTabControl.ContentTemplate&gt;
          &lt;/igWindows:XamTabControl&gt;
      &lt;/Grid&gt;
  &lt;/Window&gt;
  </code></pre>
  
  <p>The datagrid looks like
  <img src="https://i.stack.imgur.com/xrljW.png" alt="Datagrid"></p>
  
  <p>As you can see the xaml above, I overwrite the ItemTemplate property wit label, that cause different appearance from infragistics default style and the default looks like</p>
  
  <p><img src="https://i.stack.imgur.com/Aubsp.png" alt="Default">  </p>
  
  <p>How can I inherit ItemTemplate style from infragistics?</p>
  
  <p><strong>Update</strong>  </p>
  
  <p>I try following:</p>
  
  <pre><code>&lt;Window x:Class="DynamicTabControl.MainWindow"
          xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
          xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
          xmlns:igWindows="http://infragistics.com/Windows"
          xmlns:igDP="http://infragistics.com/DataPresenter"
          Title="MainWindow" Height="450" Width="700"&gt;
      &lt;Grid&gt;
          &lt;igWindows:XamTabControl Name="xamTabCtrl" ItemsSource="{Binding Collection}" Theme="Metro"&gt;
              &lt;igWindows:XamTabControl.ItemContainerStyle&gt;
                  &lt;Style TargetType="{x:Type igWindows:TabItemEx}" BasedOn=""&gt;
                      &lt;Setter Property="Header" Value="{Binding Path=Header}" /&gt;
                  &lt;/Style&gt;
              &lt;/igWindows:XamTabControl.ItemContainerStyle&gt;
              &lt;igWindows:XamTabControl.ContentTemplate&gt;
                  &lt;DataTemplate&gt;
                      &lt;igDP:XamDataGrid Theme="Metro"
                    DataSource="{Binding Logins}" IsGroupByAreaExpanded="False" GroupByAreaLocation="None" GroupByAreaMode="DefaultFieldLayoutOnly"/&gt;
                  &lt;/DataTemplate&gt;
              &lt;/igWindows:XamTabControl.ContentTemplate&gt;
          &lt;/igWindows:XamTabControl&gt;
      &lt;/Grid&gt;
  &lt;/Window&gt;
  </code></pre>
  
  <p>Everything works fine, except the theme does not take it with. What do I have to write in baseOn property? </p>