看起来像这样的是不允许的。任何解决方法?基于动态资源的风格
<Style x:Key=MyDerivedStyle TargetType="{x:Type Button}"
BasedOn="{DynamicResource GlobalButtonStyle}" />
<Style x:Key="GlobalLabelStyle" TargetType="{x:Type Button}">
我得到的错误: A“DynamicResourceExtension”不能在类型“风格”的“支持算法FMP”属性设置。 'DynamicResourceExtension'只能在DependencyObject的DependencyProperty上设置。
如果我将其更改为StaticResource,则样式不会显示在我的控件中。