ThemeInfoAttribute Class
.NET Framework Class Library
ThemeInfoAttribute Class

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

Namespace:  System.Windows
Assembly:  PresentationFramework (in PresentationFramework.dll)
Visual Basic (Declaration)
<AttributeUsageAttribute(AttributeTargets.Assembly)> _
Public NotInheritable Class ThemeInfoAttribute _
    Inherits Attribute
Visual Basic (Usage)
Dim instance As ThemeInfoAttribute
C#
[AttributeUsageAttribute(AttributeTargets.Assembly)]
public sealed class ThemeInfoAttribute : Attribute
Visual C++
[AttributeUsageAttribute(AttributeTargets::Assembly)]
public ref class ThemeInfoAttribute sealed : public Attribute
JScript
public final class ThemeInfoAttribute extends Attribute
XAML
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
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
Page view tracker