title: Image Animation with a Button WPF
body: <p>I have an <code>image</code> within a <code>button</code>, I've wrote an <code>animation</code> that leads to <code>Grow</code> or <code>Shrink</code> When <code>IsMouseOver</code> Occurs, However I dont want the button itself <code>Grows</code> or <code>Shrinks</code> but the Image within the <code>Button</code> has to <code>Grow</code> or <code>Shrink</code>. Do you have any idea? I am all yours.</p>
  
  <p>here is my <strong>.XAML</strong></p>
  
  <pre><code>    &lt;Button Margin="355,0,0,0" Width="100" Height="300" Click="Button_Click_1"&gt;
          &lt;Image Source="img/blue.jpg" /&gt;
          &lt;Button.Style&gt;
              &lt;Style TargetType="Button"&gt;
                  &lt;Style.Triggers&gt;
                      &lt;Trigger Property="IsMouseOver" Value="True"&gt;
                          &lt;Trigger.EnterActions&gt;
                              &lt;BeginStoryboard&gt;
                                  &lt;Storyboard&gt;
                                      &lt;ThicknessAnimation Duration="0:0:0.250" To="0" 
                                       Storyboard.TargetProperty="BorderThickness" /&gt;
                                      &lt;DoubleAnimation Duration="0:0:0.350" To="320" 
                                       Storyboard.TargetProperty="Height" /&gt;
                                      &lt;DoubleAnimation Duration="0:0:0.350" To="120" 
                                       Storyboard.TargetProperty="Width" /&gt;
                                  &lt;/Storyboard&gt;
                              &lt;/BeginStoryboard&gt;
                          &lt;/Trigger.EnterActions&gt;
                          &lt;Trigger.ExitActions&gt;
                              &lt;BeginStoryboard&gt;
                                  &lt;Storyboard&gt;
                                      &lt;ThicknessAnimation Duration="0:0:0.250" To="0" 
                                       Storyboard.TargetProperty="BorderThickness" /&gt;
                                      &lt;DoubleAnimation Duration="0:0:0.550" To="300" 
                                       Storyboard.TargetProperty="Height" /&gt;
                                      &lt;DoubleAnimation Duration="0:0:0.550" To="100" 
                                       Storyboard.TargetProperty="Width" /&gt;
                                  &lt;/Storyboard&gt;
                              &lt;/BeginStoryboard&gt;
                          &lt;/Trigger.ExitActions&gt;
                      &lt;/Trigger&gt;
                  &lt;/Style.Triggers&gt;
              &lt;/Style&gt;
          &lt;/Button.Style&gt;
      &lt;/Button&gt;
  </code></pre>