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 |
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 |
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 |
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 |
Properties
CustomTheme
The name of the custom theme to which the tinted resources apply, if any.
DictionaryReferences
The collection of ThemedResourceDictionaryReference objects for the catalog.
public override IEnumerable<ThemedResourceDictionaryReference> DictionaryReferences { get; }
Property Value
SourceCatalog
The ThemeCatalogBase whose references will be tinted, if any.
public ThemeCatalogBase? SourceCatalog { get; }
Property Value
- ThemeCatalogBase:
nullindicates 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.
TintGroups
The collection of tint groups that can be referenced in the resources via the Name attached property.
public TintGroupCollection TintGroups { get; }
Property Value
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
- ThemeCatalogBase.GetDictionaryReferencesForTheme(string)
- ThemeCatalogBase.Priority
- object.GetType()
- object.MemberwiseClone()
- object.ToString()
- object.Equals(object)
- object.Equals(object, object)
- object.ReferenceEquals(object, object)
- object.GetHashCode()