Method InitState
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
controlViewThe view control for which the visual state is being initialized.
stateVisualStateThe visual state to initialize and configure.
clearbooltrue to clear existing setters from the visual state before applying new ones; otherwise, false. The default is true.