アプリケーションに含める共通のスタイルとリソースのセットをそれぞれ提供する 2 つのアセンブリがあります。App.xaml
それらをロードするためにマージされた辞書を使用していますが、実行時には問題ありませんでした。残念ながら、これらのリソースは設計時に読み込まれず、解決できないリソースに関するメッセージで [エラー] ウィンドウがいっぱいになり、実際に表示されるものを表していない UI が表示されます。
これは、現在の私の App.xaml です。
<Application x:Class="ClientDebug.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
>
<Application.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="/Dai.Common;component/Xaml/Common.xaml" />
<ResourceDictionary Source="/Dai.DevExpress;component/Xaml/Styles.xaml" />
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</Application.Resources>
</Application>
これらのマージされた辞書の両方で、[エラー] ウィンドウに次のエラーが表示されます。
Error 11 An error occurred while finding the resource dictionary "/Dai.Common;component/Xaml/Common.xaml". C:\DevProjects\Core Application\ClientDebug\App.xaml 12 17 ClientDebug
Error 12 An error occurred while finding the resource dictionary "/Dai.DevExpress;component/Xaml/Styles.xaml". C:\DevProjects\Core Application\ClientDebug\App.xaml 13 17 ClientDebug
これは明らかに役立つ情報が不足しています。繰り返しになりますが、これらは実行時に期待どおりにロードされますが、設計時に使用できるリソースはありません。