In This Article

TintedThemeCatalog Class

Represents a theme catalog that can be used to tint another theme catalog.

public class TintedThemeCatalog : ThemeCatalogBase
Inheritance:
object ThemeCatalogBase object

Constructors

TintedThemeCatalog()

Initializes an instance of the class that will tint all registered system theme catalogs.

public TintedThemeCatalog()

TintedThemeCatalog(ThemeCatalogBase)

Initializes an instance of the class that will tint the specified theme catalog.

public TintedThemeCatalog(ThemeCatalogBase sourceCatalog)
Parameter Type Description
sourceCatalog ThemeCatalogBase

A ThemeCatalogBase that should be tinted.

TintedThemeCatalog(ThemeCatalogBase, Color)

Initializes an instance of the class that will tint the specified theme catalog.

public TintedThemeCatalog(ThemeCatalogBase sourceCatalog, Color tintColor)
Parameter Type Description
sourceCatalog ThemeCatalogBase

A ThemeCatalogBase that should be tinted.

tintColor Color

The Color that is used to tint the Default resources.

TintedThemeCatalog(string)

Initializes an instance of the class that will tint the current system theme from all registered system theme catalogs and apply a custom theme name.

public TintedThemeCatalog(string customTheme)
Parameter Type Description
customTheme string

The name to give the new tinted theme.

TintedThemeCatalog(string, string)

Initializes an instance of the class that will tint the specified theme from all registered system theme catalogs and apply a custom theme name.

public TintedThemeCatalog(string customTheme, string theme)
Parameter Type Description
customTheme string

The name to give the new tinted theme.

theme string

The theme to use as a basis for the custom theme.

TintedThemeCatalog(string, string, Color)

Initializes an instance of the class that will tint the specified theme from all registered system theme catalogs and apply a custom theme name.

public TintedThemeCatalog(string customTheme, string theme, Color tintColor)
Parameter Type Description
customTheme string

The name to give the new tinted theme.

theme string

The theme to use as a basis for the custom theme.

tintColor Color

The Color that is used to tint the Default resources.

TintedThemeCatalog(string, Color)

Initializes an instance of the class that will tint the current system theme from all registered system theme catalogs and apply a custom theme name.

public TintedThemeCatalog(string customTheme, Color tintColor)
Parameter Type Description
customTheme string

The name to give the new tinted theme.

tintColor Color

The Color that is used to tint the Default resources.

TintedThemeCatalog(Color)

Initializes an instance of the class that will tint all registered system theme catalogs.

public TintedThemeCatalog(Color tintColor)
Parameter Type Description
tintColor Color

The Color that is used to tint the Default resources.

Properties

CustomTheme

The name of the custom theme to which the tinted resources apply, if any.

public string? CustomTheme { get; }

Property Value

string

DictionaryReferences

The collection of ThemedResourceDictionaryReference objects for the catalog.

public override IEnumerable<ThemedResourceDictionaryReference> DictionaryReferences { get; }

Property Value

IEnumerable<ThemedResourceDictionaryReference>

SourceCatalog

The ThemeCatalogBase whose references will be tinted, if any.

public ThemeCatalogBase? SourceCatalog { get; }

Property Value

ThemeCatalogBase:

null indicates all the registered system theme catalogs will be tinted.

Themes

The collection of theme names (e.g. "AeroNormalColor", "OfficeBlue", etc.) to which the tinting will be applied.

public IList<string> Themes { get; }

Property Value

IList<string>

TintGroups

The collection of tint groups that can be referenced in the resources via the Name attached property.

public TintGroupCollection TintGroups { get; }

Property Value

TintGroupCollection

Remarks

If left unmodified, the default collection will contain a TintGroup named NoTint that prevents tinting from occurring on resources that reference it.

Inherited Members

Extension Methods