Table of Contents

Method AddSetter

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

AddSetter<T>(VisualState, BindableProperty, T)

Adds a setter to the specified visual state.

public static Setter AddSetter<T>(this VisualState state, BindableProperty prop, T value)

Parameters

state VisualState

The visual state to add the setter to.

prop BindableProperty

The bindable property to set.

value T

The value to set.

Returns

Setter

The created setter.

Type Parameters

T

The type of the value to set.