ThemeCatalogBase Class
Provides the base requirements for a theme catalog that provides a list of themed resource dictionaries references.
public abstract class ThemeCatalogBase
- Inheritance:
- Object Object
- Derived:
- SystemThemeCatalog TintedThemeCatalog
Constructors
ThemeCatalogBase()
protected ThemeCatalogBase()
Properties
DictionaryReferences
Gets the collection of ThemedResourceDictionaryReference objects for the catalog.
public abstract IEnumerable<ThemedResourceDictionaryReference> DictionaryReferences { get; }
Property Value
- IEnumerable<ThemedResourceDictionaryReference>:
The collection of ThemedResourceDictionaryReference objects for the catalog.
Priority
Gets the priority of this catalog.
public virtual int Priority { get; }
Property Value
Remarks
Catalog with a lower priority value will be loaded before a catalog with a higher priority. Regardless of their priority, system theme catalogs are always loaded before user defined theme catalogs.
Methods
GetDictionaryReferencesForTheme(String)
Gets the collection of ThemedResourceDictionaryReference objects for the catalog associated with the specified theme name.
public IEnumerable<ThemedResourceDictionaryReference> GetDictionaryReferencesForTheme(string theme)
Parameter | Type | Description |
---|---|---|
theme | String | The theme name whose references should be returned. |
Returns
- IEnumerable<ThemedResourceDictionaryReference>:
The collection of ThemedResourceDictionaryReference objects for the catalog associated with the specified theme name.