Basic Library for WPF and Silverlight | ComponentOne
C1.Silverlight Namespace / Extensions Class / GetVisualStateGroup Method
Element to start from
Name of the group to look for

In This Topic
    GetVisualStateGroup Method (Extensions)
    In This Topic
    Gets the VisualStateGroup with the given name, looking up the visual tree
    Syntax
    'Declaration
     
    
    <ExtensionAttribute()>
    Public Shared Function GetVisualStateGroup( _
       ByVal root As FrameworkElement, _
       ByVal groupName As String _
    ) As VisualStateGroup
    [Extension()]
    public static VisualStateGroup GetVisualStateGroup( 
       FrameworkElement root,
       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