Gets the VisualStateGroup with the given name, looking up the visual tree

Namespace:  C1.Silverlight
Assembly:  C1.Silverlight (in C1.Silverlight.dll)

Syntax

C#
public static VisualStateGroup GetVisualStateGroup(
	this FrameworkElement root,
	string groupName
)
Visual Basic
<ExtensionAttribute> _
Public Shared Function GetVisualStateGroup ( _
	root As FrameworkElement, _
	groupName As String _
) As VisualStateGroup

Parameters

root
Type: System.Windows..::..FrameworkElement
Element to start from
groupName
Type: System..::..String
Name of the group to look for

Return Value

The group, if found, or null

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type FrameworkElement. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

See Also