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">

相关文章:

  • 2021-07-09
  • 2021-07-04
  • 2021-11-02
  • 2021-08-31
  • 2021-05-25
  • 2021-10-10
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-09-16
  • 2021-11-08
  • 2021-11-16
  • 2021-12-05
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案