1
首先,我读了XML中的所有资源,我MergedDictionaries ,现在我喜欢“选择”为Current.Resources任何资源如何从MergedDictionaries选择资源
伪代码:
Application.Current.Resources = Resources.From.MergedDictionaries.Selected(themeId.Path);
任何理念?
首先,我读了XML中的所有资源,我MergedDictionaries ,现在我喜欢“选择”为Current.Resources任何资源如何从MergedDictionaries选择资源
伪代码:
Application.Current.Resources = Resources.From.MergedDictionaries.Selected(themeId.Path);
任何理念?
您可以使用Application.FindResource
,它还会搜索MergedDictionaries
THX,但是这解决了不是我的问题。我在我的MergedDictionaries 3层完整的风格,他们的最后一个资源将被载入。现在我可以从列表框中选择其他完整的样式,这就像从MergedDictionaries中选择一样。使用FindResource可以只更改元素或? – 2009-07-03 08:43:25