Table of Contents

Method InitState

Namespace
Alternet.Maui
Assembly
Alternet.UI.Maui.dll

InitState(View, VisualState, bool)

Initializes the specified visual state for the given view, optionally clearing existing setters before applying new ones.

public virtual void InitState(View control, VisualState state, bool clear = true)

Parameters

control View

The view control for which the visual state is being initialized.

state VisualState

The visual state to initialize and configure.

clear bool

true to clear existing setters from the visual state before applying new ones; otherwise, false. The default is true.