当前位置:网站首页>C# InitializeComponent() does not exist in the current context

C# InitializeComponent() does not exist in the current context

2022-08-10 13:19:00 HUAWEI CLOUD

C# - InitializeComponent() does not exist in the current context

Possible cause: An error may occur when the project file is loaded directly from the outside.You can first check the beginning of the xaml file

x:Class="day27test02.MainWindow"
is the correct class name.If not, change it to the class of the corresponding project.

insert image description here

This is a situation I encountered and solved in this way, for reference only.

原网站

版权声明
本文为[HUAWEI CLOUD]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/222/202208101232218065.html