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

后端 未结 7 1986
夕颜
夕颜 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.

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