名称“XXViewModel”在命名空间中不存在。 [英] The name "XXViewModel" does not exist in the namespace.

查看:383
本文介绍了名称“XXViewModel”在命名空间中不存在。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的XAML设计师总是崩溃给我这个错误。错误说它无法找到名称但是你清楚地看到它在同一个项目中。我可以正常运行项目,它只是< g class =" gr_ gr_316 gr-alert gr_gramm gr_inline_cards
gr_run_anim Grammar multiReplace"数据-GR-ID =" 316" ID = QUOT; 316">给< / g取代;这个恼人的错误< g class =" gr_ gr_318 gr-alert gr_tiny gr_spell gr_inline_cards gr_run_anim ContextualSpelling multiReplace"数据-GR-ID =" 318"
id =" 318"> i< / g>甚至看不到我的控制设计。

My XAML designer always crashes giving me this error. The error says it can't find the name but as you clearly see it is there within the same project. I can run the project just fine, it just <g class="gr_ gr_316 gr-alert gr_gramm gr_inline_cards gr_run_anim Grammar multiReplace" data-gr-id="316" id="316">give</g> this annoying error that <g class="gr_ gr_318 gr-alert gr_tiny gr_spell gr_inline_cards gr_run_anim ContextualSpelling multiReplace" data-gr-id="318" id="318">i</g> can't even see the design of my control.

问候

推荐答案

Hi Dikong42,

Hi Dikong42,

在创建WPF项目过程中,我也会遇到这样的问题。

In creating WPF project process, I will also encounter such problems.

如果你当前的命名空间中有这个xxxviewmodel,你可以 - 单击此项目并选择重建此项目,现在您将没有此错误消息。

If you do have this xxxviewmodel in you current namespace, you can right-click this project and choose rebuild this project, now you will don't have this error message.

最好的问候,

Cherry


这篇关于名称“XXViewModel”在命名空间中不存在。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆