VisualStateManager.GetVisualStateGroups Method

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.

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

Show: