BlankPage不包含'InitializeComponent()'的定义

时间:2022-10-31 16:54:30

As I understand it, this error is thrown when there is a mismatch between the files referenced. Still can't figure out the issue. Things are spelled correctly from what I can tell but it still isn't letting me initialize the list and it won't let me reference the 'listView' Listview. Would appreciate some help tremendously.

据我了解,当引用的文件不匹配时会抛出此错误。仍然无法弄清楚问题。事情拼写正确我可以告诉但它仍然没有让我初始化列表,它不会让我引用'listView'Listview。非常感谢一些帮助。

Should be the C# of the offending file. Notice the namespace and the method names. BlankPage不包含'InitializeComponent()'的定义

应该是违规文件的C#。注意命名空间和方法名称。

Should be the XAML of the offending file. Notice the X:Class name. It matches the Class Name from the corresponding c# page. BlankPage不包含'InitializeComponent()'的定义

应该是违规文件的XAML。注意X:Class名称。它匹配相应c#页面中的Class Name。

1 个解决方案

#1


0  

Jason is right, inherit from ContentPage, if the error persists clean your solution and rebuild.

Jason是对的,继承自ContentPage,如果错误仍然存​​在,请清理解决方案并重建。

#1


0  

Jason is right, inherit from ContentPage, if the error persists clean your solution and rebuild.

Jason是对的,继承自ContentPage,如果错误仍然存​​在,请清理解决方案并重建。