VisualStateManager.InvalidateVisualStates(VisualElement) 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.
Forces unapply and reapply of the current visual state setters for the specified visualElement.
This method is intended for infrastructure use (e.g., Hot Reload) and should not be used in application code.
public:
static void InvalidateVisualStates(Microsoft::Maui::Controls::VisualElement ^ visualElement);
public static void InvalidateVisualStates(Microsoft.Maui.Controls.VisualElement visualElement);
static member InvalidateVisualStates : Microsoft.Maui.Controls.VisualElement -> unit
Public Sub InvalidateVisualStates (visualElement As VisualElement)
Parameters
- visualElement
- VisualElement
The visual element whose visual states should be reapplied.