In This Article

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:
BarsMvvmThemeCatalog SystemThemeCatalog TintedThemeCatalog

Constructors

ThemeCatalogBase()

Initializes an instance of the class.

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

int

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.

Inherited Members