title: DataTemplateSelector error: Cannot change access modifiers
body: <p>I'm trying to make a custom <code>DataTemplateSelector</code> but it throws me the following error : Cannot change access modifiers when overriding 'public' inherited member</p>
  
  <pre><code>public class NotesTemplateSelector : DataTemplateSelector
  {
      public DataTemplate GripElectricTemplate { get; set; }
      public DataTemplate CameraTemplate { get; set; }
  
      protected override DataTemplate SelectTemplate(object item, DependencyObject container)
      {
          var ListItem = item as NoteHeaders;
          if (ListItem.NoteHeader == "Grip and Electric")
          {
              return GripElectricTemplate;
          }
          else if (ListItem.NoteHeader == "Camera")
          {
              return CameraTemplate;
          }
          return null;
      }
  }
  </code></pre>
  
  <p>xaml in my view</p>
  
  <pre><code>&lt;Grid.Resources&gt;
       &lt;local:NotesTemplateSelector x:Key="NotesTemplateSelector"/&gt;
  
       &lt;DataTemplate x:Key="GripElectricTemplate"&gt;
             &lt;StackPanel&gt;
                 &lt;Expander Header="Grip and Electric"&gt;
                       &lt;TextBox AcceptsReturn="True" HorizontalAlignment="Left" Height="85" Margin="10,5,0,0" TextWrapping="Wrap" Text="{Binding SceneCollectionView/GripElectric, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" VerticalAlignment="Top" Width="278"/&gt;
                  &lt;/Expander&gt;
               &lt;/StackPanel&gt;
              &lt;/DataTemplate&gt;
  
          &lt;DataTemplate x:Key="CameraTemplate"&gt;
             &lt;StackPanel&gt;
                   &lt;Expander Header="Grip and Electric"&gt;
                              &lt;TextBox AcceptsReturn="True" HorizontalAlignment="Left" Height="85" Margin="10,5,0,0" TextWrapping="Wrap" Text="{Binding SceneCollectionView/Camera, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" VerticalAlignment="Top" Width="278"/&gt;
                   &lt;/Expander&gt;
              &lt;/StackPanel&gt;
         &lt;/DataTemplate&gt;
  &lt;/Grid.Resources&gt;
  &lt;ListBox  Background="#FF646464" ItemsSource="{Binding ElementName=This}" ItemTemplateSelector="{StaticResource ResourceKey=NotesTemplateSelector}" dd:DragDrop.IsDragSource="True" dd:DragDrop.IsDropTarget="True"&gt;                                                   
  &lt;/ListBox&gt;
  </code></pre>
  
  <p>there seems there is something up with the SelectTemplate and it seems to disable the ViewModelLocator that I use from mvvm light. How do I work around this issue?</p>