title: Changing color of the GeometryDrawing Brush when Button is pressed
body: <p>I created a Button Template. There are an Image and a Label.
  The Source of the Image is in a ResourceDictionary Pictures. The Source of the picture is a DrawingImage with White brush color.</p>
  
  <pre><code>&lt;DrawingImage x:Key="Moduly"&gt;
    &lt;DrawingImage.Drawing&gt;
      &lt;DrawingGroup&gt;
        &lt;GeometryDrawing Brush="{Binding BackgroundColor}" Geometry="M 0,0L 32,0L 32,32L 0,32L 0,0 Z " /&gt;
        &lt;GeometryDrawing Brush="{Binding IconColor}" Geometry="M800.336 949.171H184.527c-80.603 0-136.768-65.56-136.768-146.159V203.677  c0-80.602 56.166-152.42 136.768-152.42h615.809c80.598 0 149.289 71.818 149.289 152.42v599.334  C949.625 883.611 880.934 949.171 800.336 949.171L800.336 949.171z M874.488 203.677c0-39.184-34.99-77.287-74.152-77.287H184.527  c-39.166 0-61.632 38.103-61.632 77.287v599.334c0 39.182 22.466 71.024 61.632 71.024h615.809  c39.162 0 74.152-31.843 74.152-71.024V203.677L874.488 203.677z M273.604 613.832h447.829v75.134H273.604V613.832L273.604 613.832z   M273.604 463.566h447.829v75.131H273.604V463.566L273.604 463.566z M273.604 313.295h447.829v75.134H273.604V313.295  L273.604 313.295z" /&gt;                   
      &lt;/DrawingGroup&gt;
    &lt;/DrawingImage.Drawing&gt;     
  &lt;/DrawingImage&gt;
  </code></pre>
  
  <p>The source of all styles (Button, StackPanel, Label) is in resource dictionary Styles.</p>
  
  <pre><code>&lt;ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"&gt; 
    &lt;Style TargetType="Button"&gt;
      &lt;Setter Property="BorderBrush" Value="Black"/&gt;
      &lt;Setter Property="Background" Value="#103255"/&gt;
      &lt;Setter Property="Template"&gt;
        &lt;Setter.Value&gt;
          &lt;ControlTemplate TargetType="{x:Type Button}"&gt;
            &lt;Border Background="{TemplateBinding Background}"&gt;
              &lt;ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/&gt;
            &lt;/Border&gt;
          &lt;/ControlTemplate&gt;
        &lt;/Setter.Value&gt;
      &lt;/Setter&gt;
      &lt;Style.Resources&gt;        
        &lt;Style TargetType="StackPanel"&gt;
          &lt;Style.Resources&gt;
            &lt;Style TargetType="Label"&gt;
              &lt;Setter Property="Foreground" Value="White" /&gt;
              &lt;Style.Triggers&gt;
                &lt;DataTrigger Binding="{Binding IsPressed, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Button}}}"
                             Value="True"&gt;
                  &lt;Setter Property="Foreground" Value="#103255" /&gt;
                &lt;/DataTrigger&gt;
              &lt;/Style.Triggers&gt;
            &lt;/Style&gt;                
          &lt;/Style.Resources&gt;
        &lt;/Style&gt;
      &lt;/Style.Resources&gt;
      &lt;Style.Triggers&gt;
        &lt;Trigger Property="IsMouseOver" Value="True"&gt;
          &lt;Setter Property="Background" Value="#103255"/&gt;
          &lt;Setter Property="BorderBrush" Value="Black"/&gt;                
        &lt;/Trigger&gt;
        &lt;Trigger Property="IsPressed" Value="True"&gt;
          &lt;Setter Property="Background" Value="White"/&gt;
          &lt;Setter Property="BorderBrush" Value="White"/&gt;
        &lt;/Trigger&gt;
      &lt;/Style.Triggers&gt;
    &lt;/Style&gt;        
  &lt;/ResourceDictionary&gt;
  </code></pre>
  
  <p>I need to change the brush color of the DrawingImage when the button is pressed. Only the specific one picture inside the pressed button. </p>
  
  <pre><code>&lt;Button Grid.Column="0" Grid.Row="2" Name="modulyButton"
          HorizontalAlignment="Stretch" VerticalAlignment="Stretch"
          BorderThickness="3" Margin="0,0,0,0"&gt;
    &lt;StackPanel Orientation="Vertical" Name="modulyStackPanel"
                HorizontalAlignment="Stretch" VerticalAlignment="Stretch"&gt;
      &lt;Image x:Name="modulyImage" Source="{StaticResource Moduly}"
             HorizontalAlignment="Stretch" VerticalAlignment="Stretch"
             Height="30" Width="30"/&gt;
      &lt;Label x:Name="modulyLabel" Content="MODULY"
             VerticalAlignment="Center"/&gt;
    &lt;/StackPanel&gt;
  &lt;/Button&gt;
  </code></pre>
  
  <p>Does anyone have a solution?</p>