title: How to change a path fill (on a button) with triggers in XAML
body: <p>I have a button with a path as icon,i  want to change the fill of the path when the mouse is over the whole button (not only the path). Thanks.</p>
  
  <pre><code>        &lt;Button Name="Test_Button"
              Width="220"
              Height="80"
              Padding="2"&gt;
  
          &lt;Canvas Width="76"
                  Height="76"
                  Clip="F1 M 0,0L 76,0L 76,76L 0,76L 0,0"&gt;
  
              &lt;Path Canvas.Left="19"
                    Canvas.Top="19"
                    Width="38"
                    Height="38"
                    Data="F1 M 35,19L 41,19L 41,35L 57,35L 57,41L 41,41L 41,57L 35,57L 35,41L 19,41L 19,35L 35,35L 35,19 Z "
                    Stretch="Fill"&gt;
                  &lt;Path.Style&gt;
                      &lt;Style TargetType="{x:Type Path}"&gt;
                          &lt;Style.Triggers&gt;
                              &lt;Trigger Property="IsMouseOver" Value="True"&gt;
                                  &lt;Setter Property="Path.Fill" Value="Red" /&gt;
                              &lt;/Trigger&gt;
                              &lt;Trigger Property="IsMouseOver" Value="False"&gt;
                                  &lt;Setter Property="Path.Fill" Value="Gray" /&gt;
                              &lt;/Trigger&gt;
                          &lt;/Style.Triggers&gt;
                      &lt;/Style&gt;
                  &lt;/Path.Style&gt;
              &lt;/Path&gt;
          &lt;/Canvas&gt;
      &lt;/Button&gt;
  </code></pre>