Name Property
Collapse the table of content
Expand the table of content

TemplateVisualStateAttribute.Name Property

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Gets or sets the name of the state that the control can be in.

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

'Declaration
Public Property Name As String

Property Value

Type: System.String
The name of the state that the control can be in.

When ControlTemplate authors add a VisualState to the template, the Name of the VisualState should match the Name specified by the TemplateVisualStateAttribute.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft