繁体   English   中英

WPF .xaml设计器异常

[英]WPF .xaml designer exception

我正在开发WPF桌面应用程序,并且在我的xaml设计器预览中遇到此错误。 我已经浏览了许多链接,但无法弄清楚。

前面也提出了同样的问题。 URI无法识别资源,但是我仍然无法解决它。 我还附有下面的图像。

在此处输入图片说明

这是完整的错误:

Exception: The component 'Microsoft.Expression.Utility.ValueEditors.SplitComboBox' does not have a resource identified by the URI '/Microsoft.Expression.Utility;component/valueeditors/splitcombobox.xaml'.

而且,我正面临警告消息。 在此处输入图片说明

Warning 7   There was a mismatch between the processor architecture of the   project being built "MSIL" and the processor architecture of the reference "Microsoft.Expression.Utility, Version=5.0.30709.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=x86", "x86". This mismatch may cause runtime failures. Please consider changing the targeted processor architecture of your project through the Configuration Manager so as to align the processor architectures between your project and references, or take a dependency on references with a processor architecture that matches the targeted processor architecture of your project.    Predictions Version 1

为了解决以上警告,我通过了此链接,但全部徒劳。

程序运行良好,但是我需要实施设计更改并观察更改,由于设计预览无法正常工作,因此必须一次又一次地运行程序。

另请注意,当我包含mahapps.metro库时,它开始发生。 如果需要,我可以粘贴.xaml文件。 我正在使用VS2012。 提前致谢。

就我而言,删除下面的引用即可解决问题。 我不知道是哪个引起了异常。

  • Microsoft.Expression.Blend
  • Microsoft.Expression.Interactions
  • System.Windows.Interactivity

暂无
暂无

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM