After changing namespace in UserControl files, …g.cs files get errors

前端 未结 6 1358
陌清茗
陌清茗 2021-02-18 18:54

I copied three classes in from another WPF project and then changed their namespaces.

Now when I run the project, I get errors in the \".g.cs\"

6条回答
  •  天命终不由人
    2021-02-18 19:23

    Did you update the namespace of the class in the x:Class attribute on UserControl in the XAML too?

    Failing that, have you tried rebuilding the project?

提交回复
热议问题