title: WPF EventTriggers - Cannot convert string 'MouseEnter' in attribute 'RoutedEvent' to object of type 'System.Windows.RoutedEvent'
body: <p>I can't get any event triggers to work.  A simplified example of what I'm doing is below - </p>
  
  <pre><code>&lt;Window x:Name="win" x:Class="EventTriggers.Window1"
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  Title="Window1" Height="300" Width="300"&gt;
  &lt;Window.Resources&gt;
      &lt;ControlTemplate x:Key="buttonT"&gt;
          &lt;Border Background="#333"&gt;
              &lt;TextBlock Text="{Binding}" HorizontalAlignment="Stretch" Foreground="White"/&gt;
              &lt;Border.Triggers&gt;
                  &lt;EventTrigger RoutedEvent="MouseEnter"&gt;
  
                  &lt;/EventTrigger&gt;
              &lt;/Border.Triggers&gt;
          &lt;/Border&gt;
      &lt;/ControlTemplate&gt;
  
      &lt;DataTemplate x:Key="lbt"&gt;
          &lt;Button Template="{StaticResource buttonT}" Click="Button_Click"&gt;&lt;/Button&gt;
      &lt;/DataTemplate&gt;
  
  &lt;/Window.Resources&gt;
  &lt;ListBox ItemsSource="{Binding ElementName=win,Path=col}" ItemTemplate="{StaticResource lbt}"&gt;
  &lt;/ListBox&gt;
  </code></pre>
  
  <p></p>
  
  <p>I know there is a <code>MouseEnter</code> event on Border since it is defined in <code>UIElement</code> but I'm still getting </p>
  
  <blockquote>
    <p>Cannot convert string 'MouseEnter' in
    attribute 'RoutedEvent' to object of
    type 'System.Windows.RoutedEvent'</p>
  </blockquote>
  
  <p>as soon as i run the application.  </p>
  
  <p>Any help would be hugely appreciated.</p>