title: How do I execute a method on button mouse-over?
body: <p>I have currently got my buttons setup to change image on mouse-over, however now I'm wondering if it's possible to execute a method on mouse-over. I have been trying to execute just a simple method to display a message box when the mouse is over the button but have had no luck.</p>
  
  <p>This is the code I currently have for my button style and tooltip:</p>
  
  <pre><code>&lt;Style x:Key="btnHoliday" TargetType="{x:Type Button}"&gt;
      &lt;Setter Property="IsEnabled" Value="True" /&gt;
      &lt;Setter Property="Template"&gt;
          &lt;Setter.Value&gt;
              &lt;ControlTemplate&gt;
                  &lt;Image x:Name="PART_img" Source="C:\Users\Development\Documents\Visual Studio 2013\Projects\Program\Resources\Icons\Holiday.png" /&gt;
                  &lt;ControlTemplate.Triggers&gt;
                      &lt;Trigger Property="IsMouseOver" Value="True"&gt;
                          &lt;Setter TargetName="PART_img"
                      Property="Source"
                      Value="C:\Users\Development\Documents\Visual Studio 2013\Projects\Program\Resources\Icons\HolidayAlt.png" /&gt;
                      &lt;/Trigger&gt;
                  &lt;/ControlTemplate.Triggers&gt;
              &lt;/ControlTemplate&gt;
          &lt;/Setter.Value&gt;
      &lt;/Setter&gt;
  &lt;/Style&gt;
  </code></pre>
  
  <p>and the code for the tooltip</p>
  
  <pre><code>&lt;Button x:Name="btnHoliday" Style="{StaticResource btnHoliday}" 
  HorizontalAlignment="Left" Margin="657,19,0,0" VerticalAlignment="Top" Width="64" Height="64" ToolTipService.ShowDuration="12000"&gt;
      &lt;Button.ToolTip&gt;
          &lt;StackPanel&gt;
              &lt;TextBlock FontWeight="Bold" FontSize="12" Margin="0,0,0,5"&gt;Launch Holidays&lt;/TextBlock&gt;
              &lt;TextBlock&gt;
                  Allows you to Book/View Holidays, Check
                  &lt;LineBreak /&gt;
                   the status of pending Bookings and view
                  &lt;LineBreak /&gt;
                  Holidays Remaining.
              &lt;/TextBlock&gt;
              &lt;Border BorderBrush="Silver" BorderThickness="0,1,0,0" Margin="0,8" /&gt;
              &lt;WrapPanel&gt;
                  &lt;TextBlock FontStyle="Italic"&gt;Click to launch.&lt;/TextBlock&gt;
              &lt;/WrapPanel&gt;
          &lt;/StackPanel&gt;
      &lt;/Button.ToolTip&gt;
  &lt;/Button&gt;
  </code></pre>