Why can't Visual Studio find my WPF InitializeComponent method?

前端 未结 14 1343
失恋的感觉
失恋的感觉 2020-12-16 08:49

This is very strange.

I have an XAML file that looks as follows...



        
14条回答
  •  半阙折子戏
    2020-12-16 09:35

    I had come across the same problem when i got a project sample from msdn. the issue was it was a 4.0 project and i did not have the 4.0 in my system, couple of referenced dlls were missing(system.xaml and another one) removed them. tried to compile, would always throw the initializecomponent method not found. went into the project properties changed the target framework to 3.5 and it is not complaining anymore.

提交回复
热议问题