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 TintedThemeCatalog class that will tint all registered system theme catalogs.

public TintedThemeCatalog()

TintedThemeCatalog(ThemeCatalogBase)

Initializes an instance of the TintedThemeCatalog 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 TintedThemeCatalog 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 TintedThemeCatalog 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 TintedThemeCatalog 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 TintedThemeCatalog 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 TintedThemeCatalog 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 TintedThemeCatalog 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

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

public string CustomTheme { get; }

Property Value

String:

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

DictionaryReferences

Gets the collection of ThemedResourceDictionaryReference objects for the assembly.

public override IEnumerable<ThemedResourceDictionaryReference> DictionaryReferences { get; }

Property Value

IEnumerable<ThemedResourceDictionaryReference>:

The collection of ThemedResourceDictionaryReference objects for the assembly.

SourceCatalog

Gets or sets the ThemeCatalogBase whose references will be tinted, if any.

public ThemeCatalogBase SourceCatalog { get; }

Property Value

ThemeCatalogBase:

The ThemeCatalogBase whose references will be tinted; otherwise, null indicates all the registered system theme catalogs will be tinted.

Themes

Gets 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>:

The collection of theme names.

TintGroups

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

public TintGroupCollection TintGroups { get; }

Property Value

TintGroupCollection:

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

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