當前位置:成語大全網 - 新華字典 - wpf資源字典使用converter?如何在字典中引用字典?

wpf資源字典使用converter?如何在字典中引用字典?

只要在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裏面的資源