Type reference cannot find public type named

前端 未结 5 1431
温柔的废话
温柔的废话 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:48

    1. Check if the root tag of the xaml file has the namespace with class Sign mapped to local alias: xmlns:local="clr-namespace:NamespaceContainingSignClass"
    2. Check whether class Sign is marked public
    3. Check whether class Sign has parameterless constructor

提交回复
热议问题