title: How can change font style on mouse click through xaml and C#?
body: <p>I have five buttons like this:</p>
  
  <pre><code>            &lt;Button Name="btnAssets" Grid.Row="1" Margin="7,1,7,1" Click="btnDrawer_Click" &gt;
                  &lt;StackPanel &gt;
                      &lt;StackPanel.Background&gt;
                          &lt;ImageBrush ImageSource="/Test;component/Images/DrawerSlid.png" /&gt;
                      &lt;/StackPanel.Background&gt;
                      &lt;Image Margin="0,0,0,0" Source="/Test;component/Images/DrawerUpper2.png" /&gt;
                      &lt;TextBlock Margin="0,10,0,10" TextWrapping="WrapWithOverflow" TextAlignment="Center"&gt;Assets&lt;/TextBlock&gt;
                      &lt;Image Margin="0,0,0,0" Source="/Test;component/Images/DrawerSlid2.png" /&gt;
                  &lt;/StackPanel&gt;                    
              &lt;/Button&gt;
  </code></pre>
  
  <p>And style trigger for these buttons like this:</p>
  
  <pre><code>    &lt;Style TargetType="StackPanel"&gt;
          &lt;Setter Property= "TextBlock.Foreground" Value="White"/&gt;
          &lt;Setter Property= "TextBlock.FontSize" Value="12"/&gt;
          &lt;Style.Triggers&gt;
             &lt;Trigger Property ="IsMouseOver" Value="True"&gt;
                 &lt;Setter Property= "TextBlock.Foreground" Value="Yellow"/&gt;
                 &lt;Setter Property= "TextBlock.FontSize" Value="13"/&gt;
              &lt;/Trigger&gt;
          &lt;/Style.Triggers&gt;                       
      &lt;/Style&gt;
  </code></pre>
  
  <p>These code works fine. Now I want that When user clicks on any of Button its Foreground color and Font size should be changed. But I can not find any easy solution. How can do this is via xaml or via c#?</p>