GetVisualStateGroups Method

VisualStateManager.GetVisualStateGroups Method

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

Gets the value of the VisualStateManager.VisualStateGroups attached property.

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

public static IList GetVisualStateGroups(
	FrameworkElement obj
)

Parameters

obj
Type: System.Windows.FrameworkElement
The element from which to get the VisualStateManager.VisualStateGroups.

Return Value

Type: System.Collections.IList
The collection of VisualStateGroup objects that is associated with the specified object.

ExceptionCondition
ArgumentNullException

obj is null.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2018 Microsoft