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 |
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 |
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 |
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 |
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.
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.