The name 'InitializeComponent' does not exist in the current context : strange behaviour

前端 未结 1 772
南旧
南旧 2020-12-21 05:29

I have created very small WPF application and facing one problem. I have below classes.

Employee.cs

using System;
using System.Collections.Generic;
         


        
相关标签:
1条回答
  • 2020-12-21 06:22

    I've had the same problem. The way I resolved it was by changing the build action of the XAML file to Page.

    To credit the source where I found the solution: http://blog.mahop.net/post/Compile-Error-for-WPF-Files-The-name-InitializeComponent-does-not-exist-in-the-current-context.aspx

    0 讨论(0)
提交回复
热议问题