Freigeben über


VisualStateUtilities.GetVisualStateGroups Method

Gets the value of the VisualStateManager.VisualStateGroups attached property.

Namespace:  Microsoft.Xaml.Interactivity
Assembly:  Microsoft.Xaml.Interactivity (in Microsoft.Xaml.Interactivity.dll)

Syntax

'Declaration
Public Shared Function GetVisualStateGroups ( _
    element As FrameworkElement _
) As IList(Of VisualStateGroup)
public static IList<VisualStateGroup> GetVisualStateGroups(
    FrameworkElement element
)
public:
static IList<VisualStateGroup^>^ GetVisualStateGroups(
    FrameworkElement^ element
)
static member GetVisualStateGroups : 
        element:FrameworkElement -> IList<VisualStateGroup> 
public static function GetVisualStateGroups(
    element : FrameworkElement
) : IList<VisualStateGroup>

Parameters

  • element
    Type: FrameworkElement

    The FrameworkElement from which to get the VisualStateManager.VisualStateGroups.

Return Value

Type: System.Collections.Generic.IList<VisualStateGroup>
The list of VisualStateGroups in the given element.

Exceptions

Exception Condition
ArgumentNullException

element is null.

.NET Framework Security

See Also

Reference

VisualStateUtilities Class

Microsoft.Xaml.Interactivity Namespace