ThemeInfoAttribute 构造函数

定义

初始化类的新实例 ThemeInfoAttribute ,并创建一个属性,该属性定义程序集中类型的主题字典位置。

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)

参数

themeDictionaryLocation
ResourceDictionaryLocation

特定于主题的资源的位置。

genericDictionaryLocation
ResourceDictionaryLocation

泛型资源(而不是特定于主题的资源)的位置。

注解

当是themeDictionaryLocationSourceAssembly,可以包含 Luna.NormalColor.xaml 等文件。 这些名称由系统主题文件定义,其中包括以下内容。

经典 - “经典” Windows 9x/2000 查看Windows XP。

Luna.NormalColor - Windows XP上的默认蓝色主题。

Luna.Homestead - 橄榄主题在Windows XP。

Luna.金属 - Windows XP上的银主题。

Royale.NormalColor - Windows XP Media Center Edition 上的默认主题。

Aero.NormalColor - Windows Vista上的默认主题

适用于