WPF: Style based on another one in a separate assembly

后端 未结 1 1839
臣服心动
臣服心动 2020-12-31 01:40

Assembly A - ResourceDictionary contains StyleA style.
Assembly B - ResourceDictionary.MergedDictionaries to merge resources from Assembly A into B.

I would

相关标签:
1条回答
  • 2020-12-31 02:16

    Try adding TargetType="{x:Type Button}" to your 'StyleB'.

    0 讨论(0)
提交回复
热议问题