Setter Setter Class

Definition

Represents an assignment of a property to a value, typically in a style or in response to a trigger.

[Xamarin.Forms.ContentProperty("Value")]
public sealed class Setter : Xamarin.Forms.Xaml.IValueProvider
type Setter = class
    interface IValueProvider
Inheritance
SetterSetter
Attributes
Implements

Remarks

Setters are used with triggers and styles.

XAML for Xamarin.Forms supports the following properties for the Setter class:

Property Value
Property

The name of the property to set.

Value

The value to apply to the property.

Constructors

Setter() Setter()

Creates a new Setter object.

Properties

Property Property

The property on which to apply the assignment.

Value Value

The value to assign to the property.

Explicit Interface Implementations

IValueProvider.ProvideValue(IServiceProvider) IValueProvider.ProvideValue(IServiceProvider)

For internal use by the Xamarin.Forms platform.

Extension Methods

LoadFromXaml<TXaml>(TXaml, String) LoadFromXaml<TXaml>(TXaml, String)

Returns an initialized view by loading the specified xaml.

LoadFromXaml<TXaml>(TXaml, Type) LoadFromXaml<TXaml>(TXaml, Type)

Returns a TXaml with the properties that are defined in the application manifest for callingType.

Applies to