title: using control templates that vary only slightly
body: <p>i have the following control template:</p>
  
  <pre><code>    &lt;ControlTemplate x:Key="GrayButton" TargetType="{x:Type Button}"&gt;
          &lt;Grid&gt;
              &lt;Image x:Name="GrayButtonImage" Source="/Server;component/Images/bg.bmp"/&gt;
              &lt;TextBlock VerticalAlignment="Center" HorizontalAlignment="Center" Foreground="White" Text="{x:Static props:Resources.IDS_ABORT}"/&gt;
          &lt;/Grid&gt;
          &lt;ControlTemplate.Triggers&gt;
              &lt;Trigger Property="IsEnabled" Value="True"&gt;
                  &lt;Setter TargetName="GrayButtonImage" Property="Source" Value="/Server;component/Images/GrayButtonOn.bmp"/&gt;
              &lt;/Trigger&gt;
              &lt;Trigger Property="IsEnabled" Value="False"&gt;
                  &lt;Setter TargetName="GrayButtonImage" Property="Source" Value="/Server;component/Images/GrayButton.bmp"/&gt;
              &lt;/Trigger&gt;
          &lt;/ControlTemplate.Triggers&gt;
      &lt;/ControlTemplate&gt;
  </code></pre>
  
  <p>and here's one button using the control template:</p>
  
  <pre><code>&lt;Button Height="40" HorizontalAlignment="Left" Margin="250,334,0,0" Name="ejf" VerticalAlignment="Top" Width="106" Template="{StaticResource GrayButton}" Click="execJournalPrgm" IsEnabled="False"/&gt;
  </code></pre>
  
  <p>I need roughly 4-8 more buttons that vary only by text name/color... what is the best way to do this without repeating the control template definition 4-8 times? </p>
  
  <p>any help would be greatly appreciated.</p>