StyleTypedPropertyAttribute Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents an attribute that is applied to the class definition and determines the TargetTypes of the properties that are of type Style.
public ref class StyleTypedPropertyAttribute sealed : Attribute
[System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true)]
public sealed class StyleTypedPropertyAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true)>]
type StyleTypedPropertyAttribute = class
inherit Attribute
Public NotInheritable Class StyleTypedPropertyAttribute
Inherits Attribute
- Inheritance
- Attributes
Remarks
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.
XAML Text Usage
You cannot use this class or its properties in XAML.
Constructors
| Name | Description |
|---|---|
| StyleTypedPropertyAttribute() |
Initializes a new instance of the StyleTypedPropertyAttribute class. |
Properties
| Name | Description |
|---|---|
| Property |
Gets or sets the name of the property that is of type Style. |
| StyleTargetType |
Gets or sets the TargetType of the Property this attribute is specifying. |