Export (0) Print
Expand All

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)
XMLNS for XAML: http://schemas.microsoft.com/winfx/2006/xaml/presentation, http://schemas.microsoft.com/netfx/2007/xaml/presentation

[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.

System.Object
  System.Attribute
    System.Windows.StyleTypedPropertyAttribute

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