title: Dynamically change WPF Toolkit Chart Types using DataTemplateSelector
body: <p>I have two WPF toolkit charts (column and pie).</p>
  
  <p>&lt;-- Column Chart --></p>
  
  <pre><code>&lt;DVC:Chart Name="mcChartPie" Title="{Binding ChartName}"       
  DataContext="{Binding SelectedChart}"&gt;
  &lt;DVC:Chart.Series&gt;
  &lt;DVC:PieSeries ItemsSource="{Binding Columns}" Title="Some Chart"
  IndependentValueBinding="{Binding Path=Name}" DependentValueBinding="{Binding 
  Path=Value}"&gt;&lt;/DVC:PieSeries&gt;
  &lt;/DVC:Chart.Series&gt;
  &lt;/DVC:Chart&gt;
  </code></pre>
  
  <p>&lt;-- Pie Chart --></p>
  
  <pre><code>    &lt;DVC:Chart Name="mcChart" Title="{Binding ChartName}"    
  DataContext="{Binding SelectedChart}" Style="{DynamicResource Info&gt;
  &lt;DVC:Chart.Series&gt;
  &lt;DVC:ColumnSeries ItemsSource="{Binding Columns}" Title="Some Chart"  
  IndependentValueBinding="{Binding Path=Name}" DependentValueBinding="{Binding 
  Path=Value}" Background="Black" AnimationSequence="FirstToLast" &gt;&lt;/DVC:ColumnSeries&gt;
  &lt;/DVC:Chart.Series&gt;
  &lt;/DVC:Chart&gt;
  </code></pre>
  
  <p>There is a combobox that allows user to select the chart type. When user selects the "Column Chart Type", the column chart template should be visible and when user selects "Pie Chart Type", the pie chart template should be visible. How can I do this by overriding SelectTemplate() method in the DataTemplateSelector class?  </p>