ThemeInfoAttribute Constructor (ResourceDictionaryLocation, ResourceDictionaryLocation)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Initializes a new instance of the ThemeInfoAttribute class and creates an attribute that defines theme dictionary locations for types in an assembly.

Namespace:   System.Windows
Assembly:  PresentationFramework (in PresentationFramework.dll)

public ThemeInfoAttribute(
	ResourceDictionaryLocation themeDictionaryLocation,
	ResourceDictionaryLocation genericDictionaryLocation
)

Parameters

themeDictionaryLocation
Type: System.Windows.ResourceDictionaryLocation

The location of theme-specific resources.

genericDictionaryLocation
Type: System.Windows.ResourceDictionaryLocation

The location of generic, not theme-specific, resources.

When the themeDictionaryLocation is SourceAssembly, you can include files such as Luna.NormalColor.xaml. These names are defined by the system theme files, which include the following.

Classic – "Classic" Windows 9x/2000 look on Windows XP.

Luna.NormalColor - Default blue theme on Windows XP.

Luna.Homestead – Olive theme on Windows XP.

Luna.Metallic – Silver theme on Windows XP.

Royale.NormalColor – Default theme on Windows XP Media Center Edition.

Aero.NormalColor – Default theme on Windows Vista

.NET Framework
Available since 3.0
Return to top
Show: