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.
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
Available since 3.0