TemplateVisualStateAttribute TemplateVisualStateAttribute TemplateVisualStateAttribute Class


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

public : sealed class TemplateVisualStateAttribute : Attribute
public sealed class TemplateVisualStateAttribute : Attribute
Public NotInheritable Class TemplateVisualStateAttribute Inherits Attribute
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)


TemplateVisualStateAttribute() TemplateVisualStateAttribute() TemplateVisualStateAttribute()

Initializes a new instance of the TemplateVisualStateAttribute class.

public : TemplateVisualStateAttribute()
public TemplateVisualStateAttribute()
Public Sub New()

See Also