只要在App.xaml裏面添加字典的時候按先後順序就可以了
<Application.Resources><ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary?Source="Skin/BrushResources.xaml"/>
<ResourceDictionary?Source="Skin/ImageResources.xaml"/>
<ResourceDictionary?Source="Skin/AppResources.xaml"/>
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</Application.Resources>
如上述代碼所示,AppResources.xaml裏面用到BrushResources.xaml裏面的資源