110,561
社区成员
发帖
与我相关
我的任务
分享
<Style x:Key="bl" TargetType="{x:Type TextBlock}">
<Style TargetType="{x:Type Button}">
...
...
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="Button"> //Button的模板
...
...
<TextBlock Style="{DynamicResource bl}">....</TextBlock> //模板中用到了TextBlock
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>