WPF style的继承

<Style x:Key="baseStyle" TargetType="TextBlock">
    <Setter Property="FontSize" Value="12" />
    <Setter Property="Background" Value="Orange" />
</Style>

<Style x:Key="boldStyle" BasedOn="{StaticResource baseStyle}" TargetType="TextBlock">
    <Setter Property="FontWeight" Value="Bold" />
</Style>
如果要继承的是默认style
<Style TargetType="TextBlock" BasedOn="{StaticResource {x:Type TextBlock}}">

原文地址:https://www.cnblogs.com/movingcity/p/2652167.html