ThemedResourceDictionaryReference Class
Provides a reference to a themed ResourceDictionary and describes its contents.
public class ThemedResourceDictionaryReference
- Inheritance:
- object object
- Derived:
- TintedResourceDictionaryReference
Constructors
ThemedResourceDictionaryReference()
Initializes an instance of the class.
public ThemedResourceDictionaryReference()
Properties
AreThemesExclusive
Gets or sets a value indicating whether the Themes property is inclusive or exclusive.
public bool AreThemesExclusive { get; set; }
Property Value
LocationUri
Gets or sets the System.Uri pointing to the location of the XAML-based resource dictionary.
public Uri LocationUri { get; set; }
Property Value
- Uri:
The System.Uri pointing to the location of the XAML-based resource dictionary.
Themes
Gets or sets the collection of theme names (e.g. Generic, OfficeBlue, etc.) for which the resources apply or don't apply based on the AreThemesExclusive property.
public IEnumerable<string> Themes { get; set; }
Property Value
- IEnumerable<string>:
The collection of theme names.
Methods
GetResourceDictionary()
Gets a ResourceDictionary initialized using LocationUri.
protected virtual ResourceDictionary GetResourceDictionary()
Returns
- ResourceDictionary:
The ResourceDictionary that was initialized.