Xamarin.Forms Guides | Samples

Xamarin.Forms.Setter Class

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

See Also: Setter


public sealed class Setter : IValueProvider


Setters are used with triggers and styles.

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


The name of the property to set.


The value to apply to the property.


Namespace: Xamarin.Forms
Assembly: Xamarin.Forms.Core (in Xamarin.Forms.Core.dll)
Assembly Versions:,,,

The members of Xamarin.Forms.Setter are listed below.

See Also: Object

Public Constructors

Creates a new Setter object.

Public Properties

PropertyBindableProperty. The property on which to apply the assignment.
ValueObject. The value to assign to the property.

Explicitly Implemented Interface Members

Setter$IValueProvider.ProvideValue(IServiceProvider)For internal use by the Xamarin.Forms platform.