当前位置:网站首页>C WPF normal project suddenly prompts that the name "initializecomponent" does not exist in the current context
C WPF normal project suddenly prompts that the name "initializecomponent" does not exist in the current context
2022-07-28 18:11:00 【Ripo_ za】
Problem description
An existing C# project , It's good to open it before , Never changed , The following error will be prompted when you reopen it recently , Lead to wpf The control of failed to initialize , Some control prompts cannot be found .
Although there are red lines indicating errors , But the project can still run .
The name... Does not exist in the current context “InitializeComponent”
resolvent
There are many solutions to this problem on the Internet , Mostly for sure namespace And so on , Those solutions are mainly for errors caused by copying code .
The effective solution to my situation is
1、 Open and prompt the wrong file (xaml.cs) Corresponding to xaml file
2、 Make any changes , For example, add a space or something
3、 Then save
4、 At this time, it should be good to return to the file just prompted
Simply put, save it again xaml file .
Solve the issue from https://www.itranslater.com/qa/details/2110249013411841024
边栏推荐
- Electrotechnics self study notes 1.21
- 关于图片的像素、分辨率、尺寸问题的解答,以及显示器的显示大小。
- Changjiang storage launched its own storage brand "Zhiti", and the first SSD product was exposed
- Tips--对卷积的物理意义的理解
- Compilation principle learning notes 3 (top-down syntax analysis)
- Mmdetection3d (2) -- visualization of results and logs
- OpenMV(五)--STM32实现人脸识别
- 横向listview的最佳实现——RecycleView
- com.mysql.jdbc.Driver 和 com.mysql.cj.jdbc.Driver的配置文件
- Openmv (II) -- ide installation and firmware download
猜你喜欢

centos8按照docker官网创wordpress+mysql报错解决

Tips -- solve the problem of no module named matlab.engine

Leetcode--45. jumping game II (greed)

Mmdetection3d (2) -- visualization of results and logs

硬件工程师成长之路(0)----认识元件

How to sharpen a knife simply by yourself

2.2- data type

Compilation principle learning notes 2 (Introduction to syntax analysis)

Digital filter (V) -- design IIR filter

2022 idea (student email authentication) installation and use tutorial and basic configuration tutorial
随机推荐
视频号小白起号操作指南
Tips -- solve the problem of no module named matlab.engine
Through private channels such as official account, direct the live broadcast of video number
How to sharpen a knife simply by yourself
Idea error running 'application' command line is too long solution
Digital filter (V) -- design IIR filter
视频号上销量较好的品类
有一种密码学专用语言叫做ASN.1
Tips -- understanding of the physical meaning of convolution
1.08 billion dollars! TCL technology acquires Samsung Suzhou 8.5 generation line: the production capacity will increase by 60% in the next year!
Image processing code sorting
苹果供应商JDI拟以6.75亿美元出售白山LCD工厂和设备
1.4-dos
1.1- notes
The video number is more like a official account of version 2.0
“云战略”将成为企业数字化转型的重要支柱
TensorFlow2.0(十二)--实现简单RNN与LSTM网络
Video number from 2-3 games per week to 3 games per day
蛰伏两年!瓴盛科技首款AIoT芯片发布:三星11nm工艺,集成NPU内核!
Andorid: Zxing.Demo二维码扫描框架遇到的坑