标签: wpf resources
首先,我在MergedDictionaries中读取xml中的所有资源 现在我喜欢“选择”任何资源作为Current.Resources
伪代码:
Application.Current.Resources = Resources.From.MergedDictionaries.Selected(themeId.Path);
任何想法?
答案 0 :(得分:2)
您可以使用Application.FindResource,它还会搜索MergedDictionaries
Application.FindResource