<Style x:Key="Small" TargetType="Button">
<Setter Property="Width" Value="80"/>
</Style>
<Style x:Key="DefaultButtonStyleSmall" TargetType="Button" BasedOn="{StaticResource ButtonBaseStyle}">
<Setter Property="Width" Value="{StaticResource Small}" />
</Style>
Run Code Online (Sandbox Code Playgroud)
我收到错误
System.Window.Style 不是 setter 上 System.Windows.FrameworkElement.Width 属性的有效值
我究竟做错了什么?
wpf ×1