WPF: Style based on another one in a separate assembly

后端 未结 1 1854
臣服心动
臣服心动 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条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-31 02:16

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

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