问题
I started facing the weird problem recently on my new laptop.
I installed a fresh copy of Windows 8.1 and then Visual Studio Ultimate 2013.
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.
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.
I reinstalled Visual Studio a couple of times and at last even formatted the OS and reinstalled it, but the problem still persists.
回答1:
@JTIM: Sure!!
Posted by Varun Mashru on 5/23/2014 at 3:54 AM on Visual Studio Feedback Forum
Surprisingly and fortunately, I found the solution just two days ago. It bit of a bummer but that's what it is.
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??
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.
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.
The power settings when cranked up to the max indicate that the AMD GPU must be the one that should take the lead.
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!! :)
来源:https://stackoverflow.com/questions/23326966/visual-studio-2013-designer-view-not-showing-the-ui-elements