Template Binding in Control template
问题 I have the following control template. I wish to set the source property for the image control in the control template using Template Binding. 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. <ControlTemplate x:Key=\"BtnTemplate\" TargetType=\"Button\"> <Border CornerRadius=\"5\" Margin=\"15\" Cursor=\"Hand\"> <StackPanel> <Image Name=\"Img\" Style=\"{StaticResource ImageStyle}\" Source=\