ComponentOne Basic Library for WPF and Silverlight
GetVisualStateGroup Method (Extensions)


C1.Silverlight Namespace > Extensions Class : GetVisualStateGroup Method
Element to start from
Name of the group to look for
Gets the VisualStateGroup with the given name, looking up the visual tree
Syntax
'Declaration
 
<System.Runtime.CompilerServices.ExtensionAttribute()>
Public Shared Function GetVisualStateGroup( _
   ByVal root As System.Windows.FrameworkElement, _
   ByVal groupName As System.String _
) As System.Windows.VisualStateGroup
'Usage
 
Dim root As System.Windows.FrameworkElement
Dim groupName As System.String
Dim value As System.Windows.VisualStateGroup
 
value = Extensions.GetVisualStateGroup(root, groupName)
[System.Runtime.CompilerServices.Extension()]
public static System.Windows.VisualStateGroup GetVisualStateGroup( 
   System.Windows.FrameworkElement root,
   System.string groupName
)

Parameters

root
Element to start from
groupName
Name of the group to look for

Return Value

The group, if found, or null
See Also

Reference

Extensions Class
Extensions Members