Type reference cannot find public type named

前端 未结 5 1433
温柔的废话
温柔的废话 2021-01-07 20:24

I am getting error like \"Type reference cannot find public type named \'Sign\'\" in xaml. how can i resolve it. the Sign class is in the same assembly.

<         


        
5条回答
  •  攒了一身酷
    2021-01-07 20:55

    For those in my boat who weren't helped by the top 1,00 results for this error on Google....in my case it was the precise opposite of the advice from smelch: i had to ADD the assembly info on the end of my xmlns declaration. Likely because of my particular circumstances, i guess - my datatemplate was in a stand-alone resourcedictionary xaml file. Not sure. I just know it didn't work until i added the assembly info, so for those floundering out there give that a whack and see if it works. i'm not inclined to dive into why, it just did.

提交回复
热议问题