Udostępnij za pośrednictwem


VisualStateManager.GetVisualStateGroups(FrameworkElement) Method

Definition

Retrieves the collection of VisualStateGroup objects associated with the specified FrameworkElement.

public:
 static IVector<VisualStateGroup ^> ^ GetVisualStateGroups(FrameworkElement ^ obj);
 static IVector<VisualStateGroup> GetVisualStateGroups(FrameworkElement const& obj);
public static IList<VisualStateGroup> GetVisualStateGroups(FrameworkElement obj);
function getVisualStateGroups(obj)
Public Shared Function GetVisualStateGroups (obj As FrameworkElement) As IList(Of VisualStateGroup)

Parameters

obj
FrameworkElement

The object to get the value from.

Returns

A collection of VisualStateGroup objects.

Remarks

This API provides attached property support for XAML usages, and doesn't need to be changed in a custom VisualStateManager scenario.

Applies to