簡體   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