title: Template Binding in Control template
body: <p>I have the following control template. </p>
  
  <p>I wish to set the source property for the image control in the control
   template using Template Binding. </p>
  
  <p>But since this is a control template for button control and the button control doesn't
  have source property, i can't use TemplateBinding in this case.</p>
  
  <pre><code>&lt;ControlTemplate x:Key="BtnTemplate" TargetType="Button"&gt;
          &lt;Border CornerRadius="5"  Margin="15" Cursor="Hand"&gt;
              &lt;StackPanel&gt;
                  &lt;Image Name="Img" Style="{StaticResource ImageStyle}" Source="temp.jpg" Height="100" Width="100" Margin="5"&gt;&lt;/Image&gt;
                  &lt;Label Content="{TemplateBinding Content}" Background="Transparent" Margin="2"&gt;&lt;/Label&gt;
              &lt;/StackPanel&gt;
          &lt;/Border&gt;
      &lt;/ControlTemplate&gt;
  </code></pre>
  
  <p>Since i have to set different images for different instances of button, i can't hardcode the path as well. </p>
  
  <p>Please let me know how to tackle this situation. </p>