Visual Studio 2013 设计器视图未显示 UI 元素 [英] Visual Studio 2013 Designer View not showing the UI Elements

查看:30
本文介绍了Visual Studio 2013 设计器视图未显示 UI 元素的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近开始在我的新笔记本电脑上遇到这个奇怪的问题.

I started facing the weird problem recently on my new laptop.

我安装了 Windows 8.1 的全新副本,然后安装了 Visual Studio Ultimate 2013.

I installed a fresh copy of Windows 8.1 and then Visual Studio Ultimate 2013.

前几个小时运行良好,但下次我打开它时,它没有在 XAML 设计器视图中显示 UI 元素.没有错误,XAML 代码完全没问题,然后将鼠标悬停在应该可见的元素上时,它们的轮廓既可见又可选.

It worked fine for the first few hours, but the next time I opened it, it did not show the UI elements in the XAML Designer view. There's no error, the XAML code is perfectly alright and then on hovering over the supposed-to-be-visible elements, their outline is visible as well as selectable.

令人惊讶的是,这仅适用于我打开或创建的所有新 Windows 应用商店项目.Windows Phone 应用设计器视图运行良好.

Surprisingly this is the case only with all new Windows Store Projects I open or create. The Windows Phone App Designer View works perfectly fine.

我重新安装了几次 Visual Studio,最后甚至格式化了操作系统并重新安装了它,但问题仍然存在.

I reinstalled Visual Studio a couple of times and at last even formatted the OS and reinstalled it, but the problem still persists.

推荐答案

@JTIM:当然!!

令人惊讶和幸运的是,我在两天前找到了解决方案.这有点令人沮丧,但就是这样.

Surprisingly and fortunately, I found the solution just two days ago. It bit of a bummer but that's what it is.

与 VS 设置或操作系统无关.

Its nothing to do with the VS setup or the OS.

这里首先要注意的是,它只发生在笔记本上.原因??

The first thing to notice here is that it happens with notebooks only. The REASON??

因为笔记本没有完全专用的 GPU.这些 GPU充当板载图形解决方案的辅助处理器直接连接到显示器.因此,它们仅在需要.

Because notebooks do not have completely dedicated GPUs. These GPUs act as secondary processors for the onboard graphics solution which is directly connected to the display. Hence they fire up only when needed.

我的笔记本戴尔 Inspiron 15 3537 -- Core i5 4200U(英特尔高清显卡板载 4400) + AMD Radeon HD 8670M 具有可切换显卡解决方案.因此,软件选择哪个 GPU 执行举重.

My notebook Dell Inspiron 15 3537 -- Core i5 4200U (Intel HD Graphics 4400 onboard) + AMD Radeon HD 8670M has got a switchable graphics solution. Hence the software chooses as to which GPU does the weight-lifting.

启动到最大值时的电源设置表明 AMDGPU 一定是应该带头的.

The power settings when cranked up to the max indicate that the AMD GPU must be the one that should take the lead.

在 VS 的情况下,它不会正确发生(不知道为什么??).也许 UI 组件无法决定选择哪个 GPU 处理器或者别的什么.

And in the case of VS it does not happen properly (Don't know why??). Maybe the UI components cant decide that which GPU processor to choose or whatever.

所以我发现的简单解决方法是将图形设置下降了一个档次.这是选择优化性能"可切换图形中的选项而不是最大化性能"电源计划中的字段.

So the simple workaround I found was to bring the graphics settings down by just a notch. Which is selecting the 'Optimize Performance' option in the Switchable Graphics instead of 'Maximize Performance' field in the power plans.

瞧,它运行得非常好!!!!

And voila, It works perfectly fine!!!!

与所有为此担心数月的人分享此信息问题!!:)

Share this with everyone who has freaked out for months on this issue!! :)

这篇关于Visual Studio 2013 设计器视图未显示 UI 元素的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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