VisualStateManager.GetVisualStateGroups(FrameworkElement) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.