仅在非常特殊的情况下,Visual Studio Intellisense才不能在XAML上运行 [英] Visual Studio Intellisense not working on XAML only on very specific circumstances

查看:80
本文介绍了仅在非常特殊的情况下,Visual Studio Intellisense才不能在XAML上运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在创建一个新的UserControl,当我打开它时,XAML无法正常工作.

I'm making a new UserControl, and when I opened it the XAML was not working.

我认为这很奇怪,因为当我在MainWindow上工作时,它工作得很好.所以我检查了我的MainWindow.它仍然在那里工作.同样在C#代码中.

I thought that this was odd, as when I was working on my MainWindow it was working just fine. So I checked on my MainWindow. It still works there. Also in C# code.

但是,如果我按下 CTRL +     &emsp ,它仍然可以正常运行.

However, if I press CTRL +        it still comes up fine.

我不太清楚为什么.我去了工具➾选项➾文本编辑器➾XAML➾常规,并且文本完成"部分显示为灰色(例如,自动列表成员"等).当我在主窗口中看到它时,它也会显示为灰色,但是Intellisense在那里工作.

I'm not quite sure why. I went to Tools➾Options➾Text Editor➾XAML➾General, and the Text Completion section is greyed out (e.g. Auto-List Members, etc.). This is also greyed out when I see it on my main window, but Intellisense works there.

有人可以帮我吗?我的VS版本是VS2012 Express,更新2.安装的唯一扩展是XNA(使用

Could someone help me? My VS version is VS2012 Express, Update 2. The only extension installed is XNA (using this "hack").

推荐答案

呵呵.我刚刚重新启动它,然后又重新工作了.问题是,在我重新启动它之前,它仍然无法正常工作.我还没有发现潜在的问题,但现在已解决.

Huh. I just restarted it and it worked again. The problem is that before, when I restarted it, it still did not work. I haven't found the underlying issue, but it's fixed now.

这篇关于仅在非常特殊的情况下,Visual Studio Intellisense才不能在XAML上运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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