title: Reusing Same Template for Multiple Elements
body: <p>I am creating button styles in my application, but i noticed that for every button i have to repeat the same steps again and again, i am looking for a way in the following template so that i can pass particular properties of Path element or Path for every button different but all the other elements would be same and in same order, i have tried here searching but not able to find any particular example that was helpful to me, here is the xaml :</p>
  
  <pre><code>&lt;ControlTemplate x:Key="ButtonTemplate" TargetType="{x:Type Button}"&gt;
          &lt;Grid x:Name="MainGrid"&gt;
              &lt;Rectangle 
          x:Name="MainRectangle" 
          Fill="#00000000" 
          RadiusX="5" 
          RadiusY="5"/&gt;
              &lt;ContentPresenter 
              x:Name="Presenter" 
              HorizontalAlignment="Center" 
              VerticalAlignment="Center" 
              TextBlock.Foreground="#BB225588"/&gt;
              &lt;Path Name="Minimize" Data="M0,0L32,0 32,8.6899995 0,8.6899995z" Stretch="Fill" Fill="White"  StrokeThickness="2" Width="17" Height="5" VerticalAlignment="Center" HorizontalAlignment="Center"
                  Stroke="White" &gt;
              &lt;/Path&gt;
          &lt;/Grid&gt;
          &lt;ControlTemplate.Triggers&gt;
              &lt;Trigger Property="IsMouseOver" Value="True"&gt;
                  &lt;Setter Property="Effect"&gt;
                      &lt;Setter.Value&gt;
                          &lt;DropShadowEffect ShadowDepth="2" Color="White"  BlurRadius="20"&gt;&lt;/DropShadowEffect&gt;
                      &lt;/Setter.Value&gt;
                  &lt;/Setter&gt;
              &lt;/Trigger&gt;
              &lt;Trigger Property="IsPressed" Value="True"&gt;
                  &lt;Setter TargetName="MainRectangle" Property="Fill" Value="{StaticResource ClickEffect}"/&gt;
                  &lt;Setter TargetName="Minimize" Property="Stroke" Value="White" /&gt;
              &lt;/Trigger&gt;
  
          &lt;/ControlTemplate.Triggers&gt;
      &lt;/ControlTemplate&gt;
  </code></pre>
  
  <p>Now in the above template what i want is some way to bind with every button the Path element properties or some way to inject the Path element different for every button, rest will remain same, so i don't want to repeat the same style again and again. How i can achieve it.</p>