Error: 'Cannot create unknown type '{clr-namespace:NameSpace.Properties}Settings'.'

前端 未结 4 1668
南笙
南笙 2020-12-09 02:08

I define my settings and styles in a ResourceDictionary:



        
4条回答
  •  粉色の甜心
    2020-12-09 02:32

    Just posting another potential solution, because i just recently stumbled over this exception.

    It could be that your referenced class-cefinition (in your case "Kavand.UI.Properties.Settings") does not use "public"-access-modifier.

    So in my case i could solve this problem by writing public before the class definition.

提交回复
热议问题