TemplateVisualStateAttribute Class

Definition

Specifies that a control can be in a certain state and that a VisualState is expected in the control's ControlTemplate.

public ref class TemplateVisualStateAttribute sealed : Attribute
/// [Windows.Foundation.Metadata.AllowMultiple]
/// [Windows.Foundation.Metadata.AttributeUsage(System.AttributeTargets.RuntimeClass)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.WebHostHidden]
class TemplateVisualStateAttribute sealed : Attribute
/// [Windows.Foundation.Metadata.AllowMultiple]
/// [Windows.Foundation.Metadata.AttributeUsage(System.AttributeTargets.RuntimeClass)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.WebHostHidden]
/// [Windows.Foundation.Metadata.AttributeName("templatevisualstate")]
class TemplateVisualStateAttribute sealed : Attribute
[Windows.Foundation.Metadata.AllowMultiple]
[Windows.Foundation.Metadata.AttributeUsage(System.AttributeTargets.RuntimeClass)]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.WebHostHidden]
public sealed class TemplateVisualStateAttribute : Attribute
[Windows.Foundation.Metadata.AllowMultiple]
[Windows.Foundation.Metadata.AttributeUsage(System.AttributeTargets.RuntimeClass)]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.WebHostHidden]
[Windows.Foundation.Metadata.AttributeName("templatevisualstate")]
public sealed class TemplateVisualStateAttribute : Attribute
Public NotInheritable Class TemplateVisualStateAttribute
Inherits Attribute
Inheritance
TemplateVisualStateAttribute
Attributes

Windows 10 requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Constructors

TemplateVisualStateAttribute()

Initializes a new instance of the TemplateVisualStateAttribute class.

Fields

GroupName
Name

Applies to

See also