StyleTypedPropertyAttribute Class
Collapse the table of content
Expand the table of content

StyleTypedPropertyAttribute Class

Represents an attribute that is applied to the class definition and determines the TargetTypes of the properties that are of type Style.

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

[AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple = true)]
public sealed class StyleTypedPropertyAttribute : Attribute
You cannot use this class or its properties in XAML.

Control authors apply this attribute to the class definition to specify the TargetTypes of the properties that are of type Style. For example, if you look at the declaration of the ListBox class, this attribute is used to specify that the TargetType of the ItemContainerStyle property is ListBoxItem.

Subclasses inherit this definition but can redefine the TargetType of the property by using this attribute on its own class definition.


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

© 2015 Microsoft