Exemplo n.º 1
0
 public static bool IsThemeDictionary(ResourceDictionary resourceDictionary)
 {
     return(Theme.IsThemeDictionary(resourceDictionary) ||
            ResourceDictionaryHelper.ContainsKey(resourceDictionary, LibraryThemeInstanceKey));
 }
Exemplo n.º 2
0
 public static bool IsRuntimeGeneratedThemeDictionary(ResourceDictionary resourceDictionary)
 {
     return(Theme.IsRuntimeGeneratedThemeDictionary(resourceDictionary) ||
            (ResourceDictionaryHelper.ContainsKey(resourceDictionary, LibraryThemeInstanceKey) && ((LibraryTheme)resourceDictionary[LibraryThemeInstanceKey]).IsRuntimeGenerated));
 }
Exemplo n.º 3
0
 public static string?GetThemeName(ResourceDictionary resourceDictionary)
 {
     return(Theme.GetThemeName(resourceDictionary));
 }