Пример #1
0
 public static bool IsThemeDictionary(ResourceDictionary resourceDictionary)
 {
     return(Theme.IsThemeDictionary(resourceDictionary) ||
            ResourceDictionaryHelper.ContainsKey(resourceDictionary, LibraryThemeInstanceKey));
 }
Пример #2
0
 public static bool IsRuntimeGeneratedThemeDictionary(ResourceDictionary resourceDictionary)
 {
     return(Theme.IsRuntimeGeneratedThemeDictionary(resourceDictionary) ||
            (ResourceDictionaryHelper.ContainsKey(resourceDictionary, LibraryThemeInstanceKey) && ((LibraryTheme)resourceDictionary[LibraryThemeInstanceKey]).IsRuntimeGenerated));
 }
Пример #3
0
 public static string?GetThemeName(ResourceDictionary resourceDictionary)
 {
     return(Theme.GetThemeName(resourceDictionary));
 }