Rediger

Del via


ThemeInfoAttribute Constructor

Definition

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

public:
 ThemeInfoAttribute(System::Windows::ResourceDictionaryLocation themeDictionaryLocation, System::Windows::ResourceDictionaryLocation genericDictionaryLocation);
public ThemeInfoAttribute (System.Windows.ResourceDictionaryLocation themeDictionaryLocation, System.Windows.ResourceDictionaryLocation genericDictionaryLocation);
new System.Windows.ThemeInfoAttribute : System.Windows.ResourceDictionaryLocation * System.Windows.ResourceDictionaryLocation -> System.Windows.ThemeInfoAttribute
Public Sub New (themeDictionaryLocation As ResourceDictionaryLocation, genericDictionaryLocation As ResourceDictionaryLocation)

Parameters

themeDictionaryLocation
ResourceDictionaryLocation

The location of theme-specific resources.

genericDictionaryLocation
ResourceDictionaryLocation

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

Remarks

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

Applies to