简体   繁体   English

在Blend + Sketchflow 2012中禁用了设计视图

[英]Design view disabled in Blend + Sketchflow 2012

I have a project that was created in Blend + Sketchflow preview for Visual Studio 2012. It is a simple project as I am learning C# and WPF for the first time. 我有一个在Visual Studio 2012的Blend + Sketchflow预览中创建的项目。这是一个简单的项目,因为我第一次学习C#和WPF。 I have two windows. 我有两个窗户。 A simple start screen with a button that shows the other screen. 一个简单的启动屏幕,带有一个显示另一个屏幕的按钮。 The other screen has 4 buttons which change colors during a random order animation sequence. 另一个屏幕有4个按钮,可在随机顺序动画序列中更改颜色。

My problem is that the design view became disabled. 我的问题是设计视图被禁用。 I can not open any XAML in design view anymore or edit any Storyboards etc. The only thing different I could think of is that I added a class file in Visual Studio 2012. After the project refreshed the design view went away and all I can see is the xml version of it. 我不能再在设计视图中打开任何XAML或编辑任何故事板等。我能想到的唯一不同的是我在Visual Studio 2012中添加了一个类文件。在项目刷新后,设计视图消失了,我只能看到是它的xml版本。

If anyone can show me the solution I would appreciate it as I have searched google and stackoverflow and no answers have been found. 如果有人能告诉我解决方案我会很感激,因为我搜索了谷歌和stackoverflow并没有找到答案。 I am new to both the language and VS/Blend so this may be a simple fix, I have no idea. 我是语言和VS / Blend的新手,所以这可能是一个简单的修复,我不知道。 Thanks in advance! 提前致谢!

Make sure your project type is not set to 'console' as Blend will refuse to show design view for this type. 确保您的项目类型未设置为“console”,因为Blend将拒绝显示此类型的设计视图。 If the project type is 'window', Blend will display design view just fine. 如果项目类型为“window”,Blend将显示设计视图。

Also, Blend for VS2013 will not open a solution file if the target .NET Framework version is set to 4.5.2. 此外,如果目标.NET Framework版本设置为4.5.2,则Blend for VS2013将无法打开解决方案文件。 A reset of the 'Target Framework' to 4.5.1 (or earlier) and Blend works fine. 将“目标框架”重置为4.5.1(或更早)并且Blend工作正常。

I managed to solve this thanks to Surfbutler. 感谢Surfbutler,我设法解决了这个问题。 My problem was I temporarily switched the project (output) type to console in Visual Studio 2012. When I switched it back to Window the design view started working properly again in Blend. 我的问题是我暂时将项目(输出)类型切换到Visual Studio 2012中的控制台。当我将其切换回Window时,设计视图在Blend中再次开始正常工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Visual Studio 2012设计视图的混合不起作用 - Blend for Visual Studio 2012 design view not working 我在Blend&Visual 2012中遇到有关Windows Phone 8的设计视图的问题 - I have issue about the design view of windows phone 8 in blend&visual 2012 更改矩形位置Sketchflow混合 - Change Rectangle Position Sketchflow Blend Expression Blend 4和Visual Studio 2012的Blend是否相同? - Are Expression Blend 4 and Blend for Visual Studio 2012 same? 设计ListPicker Blend / Xaml - Design ListPicker Blend/Xaml 哪里是视觉工作室2012的混合 - where is blend for visual studio 2012 将数据从窗体移动到窗体Silverlight WP7表达式混合-SketchFlow - Moving data from Form to Form Silverlight WP7 Expression blend - SketchFlow 有没有办法在使用Expression Blend设计时查看屏幕在另一种语言中的外观? - Is there a way to view how screens look in another language during design time using Expression Blend? 将转换器应用于Blend中的Number时,设计视图在TextBlock中显示`System.Object` - Design view shows `System.Object` in TextBlock when applying a converter to a Number in Blend 在Visual Studio 2012中的Metro风格应用程序的设计视图中滚动 - Scroll in design view for metro style app in Visual Studio 2012
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM