Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ThemeInfoAttribute Constructor (ResourceDictionaryLocation, ResourceDictionaryLocation)

 

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:
© 2017 Microsoft