视图设计器没有显示出来 [英] View Designer not showing up
问题描述
在微软的Visual Studio Express的2013年Windows桌面:
In MS Visual Studio Express 2013 for Windows Desktop:
我学习C#和下面演示了如何在一个文件名为.xaml创建用户界面的例子。 https://msdn.microsoft.com/en-us/library/jj153219.aspx
I'm learning C# and following an example that shows how to create a user interface in a .xaml file. https://msdn.microsoft.com/en-us/library/jj153219.aspx
这似乎从教程(见图7和8)应该有显示GUI一些窗口。然而,当我尝试打开Solution Explorer中的.xaml文件,查看代码(按Ctrl + Alt + 0)和视图设计器(Shift + F7)都存在同样的事情:刚刚的代码。我怎么打开GUI箱
It appears from the tutorial (see Figures 7 & 8) that there should be some windows showing the GUI. However, when I try to open the .xaml file in the Solution Explorer, View Code (Ctrl + Alt + 0) and View Designer (Shift + F7) both present the same thing: just the code. How do I open up the GUI box?
更新 - 这里是的.xaml文件的内容。注:我试图打开一个新的C#WPF应用程序。这是股票代码,Visual Studio的产生
Update -- Here are the .xaml file contents. Note: I'm trying to open a new C# WPF Application. This is the stock code that Visual studio produces.
<Window x:Class="WpfEvents.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="MainWindow" Height="350" Width="525">
<Grid>
</Grid>
</Window>
没有XAML UI设计师选项:
No XAML UI Designer option:
没有完整XAML视图设置:
谢谢!
No Full XAML View Setting: Thanks!
这是Visual Studio中我下载的版本。描述使我相信,XAML UI设计师应安装和使用,这不应该是一个问题。
This is the version of Visual Studio that I downloaded. The description leads me to believe that the XAML UI Designer should be installed and that this shouldn't be an issue.
快递2013年Windows桌面
的Visual Studio Express的Windows桌面,您可以充分利用Windows的使用XAML的设计师,一个生产IDE和多种编程语言,包括C#,Visual Basic和C ++。 Windows演示基础(WPF),Windows窗体和Win32之间进行选择,目标与正确的技术为您的应用和技能的Windows桌面。
Visual Studio Express for Windows Desktop lets you take full advantage of Windows with XAML designers, a productive IDE, and a variety of programming languages including C#, Visual Basic, and C++. Choose between Windows Presentation Foundation (WPF), Windows Forms, and Win32, to target the Windows desktop with the right technology for your application and your skills.
推荐答案
我不知道我是否应该在这里发表的答案,因为它可能不适用于VS快递2013。
I am not sure if I should post the answer here because it may not apply for VS Express 2013.
我已经使用Visual完全相同的问题2015年工作室社区版。
原来我的项目目标的版本是更高
I have exactly the same problem using Visual Studio 2015 Community Edition. It turns out my project Target version is higher.
尝试以下操作:
- 右键单击在Solution Explorer中的项目
- 更改目标版本为的Windows 10(10.0;建立10240)
- Right click on your project in solution explorer.
- Change the Target version to Windows 10 (10.0; Build 10240).
让我知道,如果它是不相关的,我会删除我的答案。
Let me know if it is not relevant and I will delete my answer.
干杯,
山姆
这篇关于视图设计器没有显示出来的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!