Export (0) Print
Expand All

ThemeInfoAttribute Class

Specifies the location in which theme dictionaries are stored for types in an assembly.

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

[AttributeUsageAttribute(AttributeTargets.Assembly)]
public sealed class ThemeInfoAttribute : Attribute
You cannot directly create an instance of this class in XAML.

This attribute is used at the assembly level to indicate which theme dictionaries are being used and where they are located. For example, if your project uses generic.xaml and this file is compiled into the same assembly in which the controls are defined, you would use the following syntax in the resource dictionary of a xaml file.

[assembly:ThemeInfoAttribute(ResourceDictionaryLocation.None, ResourceDictionaryLocation.SourceAssembly)]

System.Object
  System.Attribute
    System.Windows.ThemeInfoAttribute

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0

Community Additions

ADD
Show:
© 2014 Microsoft