gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-04 19:45:40 24 4
gpt4 key购买 nike

我最近在我的 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-60457Microsoft 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/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com