我对所有Label
个都有默认样式
<Style TargetType="Label">
<Setter ...
</Style>
那么我有x:Key
比Label
的款式.
<Style x:Key="notForAll" TargetType="Label">
<Setter ...
</Style>
所以,如果我这么做
<Label Style="{StaticResource notForAll}"/>
此标签将不包括默认标签样式,仅包括notForAll
样式.
How can I base 100 style on 101 label style?我不能将默认样式设置为BasedOn
<Style x:Key="notForAll" TargetType="Label" BasedOn="{StaticResource ????????????}">
<Setter ...
</Style>
我找到了solution for WPF个
<Style x:Key="NamedStyle" TargetType="Label" BasedOn="{StaticResource {x:Type Label}}">
<Setter ...
</Style>
但它是doesn't work for MAUI.