您的位置:首页 > 其它

wpf程序报"The name 'InitializeComponent' does not exist in the current context"的

2013-06-28 16:20 691 查看
stackOverFlow 's answer

I've encountered this a couple times and keep forgetting what causes it. I ran into this when I renamed the namespace on my code behind file but not in my XAML.

So check if you've done the same. They need to match since they are both part of a partial class

namespace ZZZ
{/// <summary>/// Interaction logic for MainWindow.xaml/// </summary>publicpartialclassMainWindow{//...}}<!-- XAML --><Window x:Class="ZZZ.MainWindow">
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐