在MS Visual Studio Express 2013 for Windows桌面中:
我正在学习C#并按照示例说明如何在.xaml文件中创建用户界面.https://msdn.microsoft.com/en-us/library/jj153219.aspx
从教程(见图7和图8)可以看出应该有一些窗口显示GUI.但是,当我尝试在解决方案资源管理器中打开.xaml文件时,查看代码(Ctrl + Alt + 0)和视图设计器(Shift + F7)都呈现相同的内容:只是代码.如何打开GUI框?
更新 - 这是.xaml文件内容.注意:我正在尝试打开一个新的C#WPF应用程序.这是Visual Studio生成的股票代码.
<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>
Run Code Online (Sandbox Code Playgroud)

没有XAML UI Designer选项:

没有完整的XAML视图设置:
谢谢!
这是我下载的Visual Studio版本.该描述使我相信应该安装XAML UI Designer,这应该不是问题.
适用于Windows桌面的Express 2013
Visual Studio Express for Windows Desktop使您可以充分利用Windows与XAML设计器,高效的IDE以及各种编程语言(包括C#,Visual Basic和C++).在Windows Presentation Foundation(WPF),Windows窗体和Win32之间进行选择,以针对您的应用程序和技能使用正确的技术来定位Windows桌面.
我一直在关注这个问题来制作彩色动画.
我可以创建动画,它运行正常,直到动画再次开始.有一刻,感觉动画已在那里开始/停止片刻.我希望动画能够平滑地运行,以便它不会在颜色中显示任何重新启动的效果.有可能吗?
我使用以下代码:
<Storyboard x:Key="GradientAnimation"
RepeatBehavior="Forever"
Storyboard.TargetName="BackgroundBrush"
SpeedRatio="0.3">
<ColorAnimationUsingKeyFrames
Storyboard.TargetProperty="(UIElement.Background).(LinearGradientBrush.GradientStops)[0].(GradientStop.Color)"
EnableDependentAnimation="True"
BeginTime="-0:0:0.5">
<LinearColorKeyFrame KeyTime="0:0:0" Value="Black"/>
<LinearColorKeyFrame KeyTime="0:0:1" Value="Red"/>
<LinearColorKeyFrame KeyTime="0:0:2" Value="Black"/>
<LinearColorKeyFrame KeyTime="0:0:3" Value="Red"/>
<LinearColorKeyFrame KeyTime="0:0:4" Value="Black"/>
<LinearColorKeyFrame KeyTime="0:0:5" Value="Red"/>
<LinearColorKeyFrame KeyTime="0:0:6" Value="Black"/>
<LinearColorKeyFrame KeyTime="0:0:7" Value="Red"/>
</ColorAnimationUsingKeyFrames>
<ColorAnimationUsingKeyFrames
Storyboard.TargetProperty="(UIElement.Background).(LinearGradientBrush.GradientStops)[1].(GradientStop.Color)"
EnableDependentAnimation="True">
<LinearColorKeyFrame KeyTime="0:0:0" Value="Red"/>
<LinearColorKeyFrame KeyTime="0:0:1" Value="Black"/>
<LinearColorKeyFrame KeyTime="0:0:2" Value="Red"/>
<LinearColorKeyFrame KeyTime="0:0:3" Value="Black"/>
<LinearColorKeyFrame KeyTime="0:0:4" Value="Red"/>
<LinearColorKeyFrame KeyTime="0:0:5" Value="Black"/>
<LinearColorKeyFrame KeyTime="0:0:6" Value="Red"/>
<LinearColorKeyFrame KeyTime="0:0:7" Value="Black"/>
</ColorAnimationUsingKeyFrames>
</Storyboard>
Run Code Online (Sandbox Code Playgroud)
我在代码隐藏中开始这个动画:
((Storyboard)Resources["GradientAnimation"]).Begin();
Run Code Online (Sandbox Code Playgroud)
也许有某种"缓和"方法混合了动画的开始和停止,因此它看起来像长时间运行的动画一样流畅.有什么建议?