2013-12-19 84 views
2

我正在開發WPF桌面應用程序,並在xaml設計器預覽中出現此錯誤。我經歷了很多鏈接,但無法弄清楚。WPF .xaml設計器異常

也提出了同樣的問題。但是我仍然無法解決它。我還附上了下面的圖片。

enter image description here

下面是完整的錯誤:

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

還有,我現在所面臨的警告消息。 enter image description here

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 

要解決上面的警告,我通過這個link但一切都是徒勞了。

程序運行正常,但我需要實現設計更改並觀察更改,因爲設計預覽不起作用,所以必須一次又一次地運行程序。

另外請注意,它開始發生時,我包括mahapps.metro圖書館。 如果需要,我可以粘貼我的.xaml文件。我正在使用VS2012。 在此先感謝。

回答

1

在我的情況下,刪除下面的引用解決了這個問題。 我不知道哪一個引起了異常。

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

我不知道,如果它仍然有可能在你的情況下重新創建,但有任何你可以縮小哪個引用導致異常的方式? – ProgrammerDan

+0

對我來說,Microsoft.Expression.Utility引用是造成這個問題的原因。 – canahari

+0

正是我在尋找的感謝 – Inverce