wpf - XAML 设计 View 在 visual studio 2008 for silverlight 3 中损坏了吗?

标签 wpf visual-studio-2008 silverlight xaml ide

我最近在我的 VS 2008 SP1 环境中安装了 silverlight 3 工具,现在当我打开 xaml 文件时,设计器无法加载说(如果我向上拖动面板):

Load Cancelled Loading of the visual designer was cancelled. Resume loading the designer

如果我单击简历加载链接,设计器将加载,但 XAML 和设计选项卡不会出现在拆分窗口交界处。我可以看到交换 Pane 按钮,但如果我单击它,它就不起作用。

VS 显示此错误:

Failed to load metadata assembly System.Windows.Controls.Data.Design, Version=2.0.5.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35. Exception message: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.. Stack Trace: at System.Reflection.Module._GetTypesInternal(StackCrawlMark& stackMark) at System.Reflection.Assembly.GetTypes() at MS.Internal.Package.MetadataLoader.RegisterDesignTimeMetadata(Assembly assembly, LogCallback logger)Failed to load metadata assembly System.Windows.Controls.Data.Input.Design, Version=2.0.5.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35. Exception message: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.. Stack Trace: at System.Reflection.Module._GetTypesInternal(StackCrawlMark& stackMark) at System.Reflection.Assembly.GetTypes() at MS.Internal.Package.MetadataLoader.RegisterDesignTimeMetadata(Assembly assembly, LogCallback logger)An exception of type ArgumentNullException was caught when calling IRegisterMetadata on type System.Windows.Controls.Data.Input.VisualStudio.Design.MetadataRegistration. Exception Message: Value cannot be null. Parameter name: type. Stack Trace: at Microsoft.Windows.Design.Metadata.AttributeTableBuilder.AddCallback(Type type, AttributeCallback callback) at System.Windows.Controls.Data.Input.VisualStudio.Design.MetadataRegistration.AddAttributes(AttributeTableBuilder builder) at System.Windows.Controls.Design.Common.MetadataRegistrationBase.BuildAttributeTable() at System.Windows.Controls.Data.Input.VisualStudio.Design.MetadataRegistration.Register() at MS.Internal.Package.MetadataLoader.RegisterDesignTimeMetadata(Assembly assembly, LogCallback logger)


有人经历过吗?

是否有变通或修复方法?我试过从我的机器上删除所有与 silverlight 相关的程序并重新安装,但结果还是一样?


如果有帮助,这里有一些与已安装的组件/版本的对比:

  • 微软 Visual Studio 2008 版本 9.0.30729.4108 QFE 微软.NET框架 版本 3.5 SP1
  • 安装版:企业
  • Microsoft Silverlight 项目 2008 91899-270-9195657-60457 微软 Silverlight 项目 2008 版本 9.0.30730.126
  • ...
  • Microsoft Visual Studio Team System 2008 数据库版 GDR 91899-270-9195657-60457 Microsoft Visual Studio Team System 2008 数据库版 GDR 版本 9.1.31124.01

最佳答案

这已被设计删除。引用Tim Heuer :

Where did my design view go?! You may notice right away that the VS tools no longer have the preview mode for your XAML in Silverlight projects. This is by design. We heard some pretty vocal feedback that the preview was usually turned off for most development because it was not turning out to be helpful as the applications got more complex. The team decided put the resource investment into creating a great editable design surface in VS2010 instead and not delay the release of Silverlight 3.

如果你想要一个更直观的设计器,Blend 仍然有效,我相信 VS2010 的 beta 版本内置了设计 View 。

关于wpf - XAML 设计 View 在 visual studio 2008 for silverlight 3 中损坏了吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1213346/

相关文章:

c# - 带有标记扩展名的字符串格式

c# - 在 Mahapps Metro 的输入对话框中添加密码框?

silverlight - 如何在 Visual Studio 中更改 Silverlight 项目的默认图像位置

c# - VB6 到 VB.NET 转换按钮样式

c# - 如何将控件绑定(bind)到对象属性?

c++ - 组织项目依赖

c# - 更改 C# 项目文件夹的名称?

deployment - 如何使用Visual Studio 2008创建静默安装程序包

silverlight - 有没有办法在运行时隐藏 Silverlight Grid Row?

c# - MVVM 中的子窗口