title: Passing Values when using Style
body: <p>I have a <code>Button</code> Style:</p>
  
  <pre><code>&lt;Style TargetType="{x:Type Button}" x:Key="myBtnStyle"&gt;
      &lt;Setter Property="ContentTemplate"&gt;
          &lt;Setter.Value&gt;
              &lt;DataTemplate&gt;
                  &lt;Grid&gt;
                      &lt;Grid.RowDefinitions&gt;
                          &lt;RowDefinition Height="*" /&gt;
                          &lt;RowDefinition Height="*" /&gt;
                      &lt;/Grid.RowDefinitions&gt;
  
                      &lt;TextBlock Grid.Row="0" 
                                 x:Name="myTextBlock" /&gt;
                      &lt;Rectangle Grid.Row="1"
                                 x:Name="myRectangle" /&gt;
  &lt;/ close everything&gt;
  </code></pre>
  
  <p>Is there any way to pass in values (<code>Text</code>, and <code>Fill</code> to myTextBlock and myRectangle respectively) when I assign the style to the button?</p>
  
  <pre><code>&lt;Button Style="{StaticResource ResourceKey=myBtnStyle /*assign Text and Fill here?*/ }"
          Click="myBtn_Click" /&gt;
  </code></pre>
  
  <p>If I can't assign it there, then where can I assign it? </p>