Represents a Resource
- Inheritance:
-
object
Resource
Dictionary object
Constructors
TintedResourceDictionary()
Initializes an instance of the TintedResourceDictionary
class.
TintedResourceDictionary(ResourceDictionary, Color)
Initializes an instance of the TintedResourceDictionary
class.
Parameter | Type | Description |
---|---|---|
sourceDictionary | Resource |
The Resource |
tintColor | Color | The default Color that is used to tint the resources. |
TintedResourceDictionary(ResourceDictionary, Color, ICollection<TintGroup>)
Initializes an instance of the TintedResourceDictionary
class.
Parameter | Type | Description |
---|---|---|
sourceDictionary | Resource |
The Resource |
tintColor | Color | The default Color that is used to tint the resources. |
tintGroups | ICollection<Tint |
The collection of tint groups that will not be tinted. |
Properties
SourceDictionary
Gets or sets the ResourceMergedDictionaries
collection.
Property Value
- Resource
Dictionary : The Resource
Dictionary whose contents will be cloned, tinted, and placed in theMergedDictionaries
collection.
TintColor
Gets or sets the default Color that is used to tint the resources.
Property Value
- Color:
The default Color that is used to tint the resources. The default value is
Colors.Transparent
.
Remarks
If Colors.Transparent
is specified, no tinting will be performed.
TintGroups
Gets the collection of tint groups that can be referenced in the resources via the Name attached property.
Property Value
- Tint
Group :Collection 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 TintNoTint
that
prevents tinting from occurring on resources that reference it.