In This Article

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

A value indicating whether the Themes property is inclusive or exclusive.

public bool AreThemesExclusive { get; set; }

Property Value

bool:

true if the Themes property is exclusive; otherwise false.

LocationUri

The System.Uri pointing to the location of the XAML-based resource dictionary.

public Uri? LocationUri { get; set; }

Property Value

Uri

Themes

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>

Methods

GetResourceDictionary()

A ResourceDictionary initialized using LocationUri.

protected virtual ResourceDictionary GetResourceDictionary()

Returns

ResourceDictionary

Inherited Members

Extension Methods