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

Syntax

[Xamarin.Forms.ContentProperty("Value")]
public sealed class Setter : IValueProvider

Remarks

Setters are used with triggers and styles.

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

PropertyValue
Property

The name of the property to set.

Value

The value to apply to the property.

Requirements

Namespace: Xamarin.Forms
Assembly: Xamarin.Forms.Core (in Xamarin.Forms.Core.dll)
Assembly Versions: 1.3.0.0, 1.4.0.0, 1.5.0.0, 2.0.0.0

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