title: How to set MouseOver event/trigger for border in XAML?
body: <p>I want the border to turn green when the mouse is over it and then to return to blue when the mouse is no longer over the border. </p>
  
  <p>I attempted this without any luck:</p>
  
  <pre><code>&lt;Border 
      Name="ClearButtonBorder" 
      Grid.Column="1" 
      CornerRadius="0,3,3,0" 
      Background="Blue"&gt;
      &lt;Border.Triggers&gt;
          &lt;Trigger Property="Border.IsMouseOver" Value="True"&gt;
              &lt;Setter Property="Border.Background" Value="Green" /&gt;
          &lt;/Trigger&gt;
          &lt;Trigger Property="Border.IsMouseOver" Value="False"&gt;
              &lt;Setter Property="Border.Background" Value="Blue" /&gt;
          &lt;/Trigger&gt;
      &lt;/Border.Triggers&gt;
      &lt;TextBlock 
          HorizontalAlignment="Center" 
          VerticalAlignment="Center" 
          Text="X" /&gt;
  &lt;/Border&gt;
  </code></pre>
  
  <p>How can one set a trigger or events for MouseOver?</p>