WPF 模板绑定父级控件内容
<Style TargetType="Button" x:Key="btn"> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="Button"> <Label Content="{Binding Path=Content,RelativeSource={ RelativeSource Mode=TemplatedParent}}"></Label> </ControlTemplate> </Setter.Value> </Setter> </Style>