コード例 #1
0
ファイル: LibraryTheme.cs プロジェクト: jinhuca/Crystal
 public static bool IsThemeDictionary(ResourceDictionary resourceDictionary)
 {
     return(Theme.IsThemeDictionary(resourceDictionary) ||
            ResourceDictionaryHelper.ContainsKey(resourceDictionary, LibraryThemeInstanceKey));
 }
コード例 #2
0
ファイル: LibraryTheme.cs プロジェクト: jinhuca/Crystal
 public static bool IsRuntimeGeneratedThemeDictionary(ResourceDictionary resourceDictionary)
 {
     return(Theme.IsRuntimeGeneratedThemeDictionary(resourceDictionary) ||
            (ResourceDictionaryHelper.ContainsKey(resourceDictionary, LibraryThemeInstanceKey) && ((LibraryTheme)resourceDictionary[LibraryThemeInstanceKey]).IsRuntimeGenerated));
 }
コード例 #3
0
ファイル: LibraryTheme.cs プロジェクト: jinhuca/Crystal
 public static string?GetThemeName(ResourceDictionary resourceDictionary)
 {
     return(Theme.GetThemeName(resourceDictionary));
 }