Assembly-wide / root-level styles in WPF class library

后端 未结 7 1987
夕颜
夕颜 2021-01-30 06:28

I have a C# (2008/.NET 3.5) class library assembly that supports WPF (based on this article).
I\'ve created several windows, and am now attempting to create a common style

7条回答
  •  孤城傲影
    2021-01-30 07:32

    Try adding

    Style={DynamicResource MyStyle}
    

    You cannot use a StaticResource in this case.

提交回复
热议问题