How to base a style on another style in a resource dictionary?

后端 未结 3 1833
时光取名叫无心
时光取名叫无心 2020-12-25 12:27

I have a theme that is applied to all buttons in a resource dictionary. Now I want to add a trigger to the button while inheriting the style changes from the dictionary. I t

3条回答
  •  天命终不由人
    2020-12-25 13:08

    I think there is no base style defined for "control" so your BasedOn="{StaticResource {x:Type Control}}" part won't find anything.

    You probably want to change