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

VisualStateGroup.Name Property

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

Gets the name of the VisualStateGroup.

Namespace:  System.Windows
Assembly:  System.Windows (in System.Windows.dll)
XMLNS for XAML: Not mapped to an xmlns.

public string Name { get; }
<VisualStateGroup x:Name="groupName"/>

XAML Values

groupName

The name of the VisualStateGroup. Name is a read-only property, so specify the name of the VisualState by setting x:Name.

Property Value

Type: System.String
The name of the VisualStateGroup.

Control authors specify which states the control can be in by putting the TemplateVisualStateAttribute, on its class definition. States with the same TemplateVisualStateAttribute.GroupName belong in the same VisualStateGroup. Set the x:Name of the VisualStateGroup to the value of the TemplateVisualStateAttribute.GroupName property.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2018 Microsoft