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

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

This is very strange.

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



        
14条回答
  •  再見小時候
    2020-12-16 09:37

    Your class is partial, so you should have another file that contains some other parts of your Title class (the InitializeComponent method for instance). Try to find that file, and see if the namespace in that file, is equal to the namespace of the file which contains the other parts of your class.

提交回复
热议问题