title: WPF: Dynamic property value in Style
body: <p>Is it possible to use a <strong>PlaceHolder</strong> in a WPF Style that could later be assigned a value by the implementing control? Something like:</p>
  
  <pre><code>&lt;Style x:Key="BigButton" TargetType="{x:Type Button}"&gt;
      &lt;Setter Property="Foreground" Value="#58290a" /&gt;
      &lt;Setter Property="FontFamily" Value="Lucida Console" /&gt;
      &lt;Setter Property="FontSize" Value="24" /&gt;
      &lt;Setter Property="Content"&gt;
          &lt;Setter.Value&gt;
              &lt;StackPanel&gt;
                  &lt;Image Source=[SOME PLACEHOLDER]&gt;&lt;/Image&gt;
                  &lt;TextBlock&gt;[ANOTHER PLACEHOLDER]&lt;/TextBlock&gt;
              &lt;/StackPanel&gt;
          &lt;/Setter.Value&gt;
      &lt;/Setter&gt;
  &lt;/Style&gt;
  </code></pre>
  
  <p>and then a Button could assign an image path to this place-holder like this:</p>
  
  <pre><code>&lt;Button Name="btn" Style="{StaticResource BigButton}"&gt;
      &lt;SOME CLEVER WAY OF ASSIGNING A PATH TO Style.Content.StackPanel.Image.Source and Style.Content.StackPanel.TextBlock.Text&gt;
  &lt;/Button&gt;
  </code></pre>