Share via


VisualStateManager.HasVisualStateGroups(VisualElement) Method

Definition

Determines whether the specified element has any visual state groups defined.

public:
[System::Runtime::CompilerServices::Extension]
 static bool HasVisualStateGroups(Microsoft::Maui::Controls::VisualElement ^ element);
public static bool HasVisualStateGroups(this Microsoft.Maui.Controls.VisualElement element);
static member HasVisualStateGroups : Microsoft.Maui.Controls.VisualElement -> bool
<Extension()>
Public Function HasVisualStateGroups (element As VisualElement) As Boolean

Parameters

element
VisualElement

The visual element to check.

Returns

true if the element has visual state groups; otherwise, false.

Applies to