Xamarin.Forms Guides | Samples

Xamarin.Forms.Trigger Class

Class that represents a property condition and an action that is performed when the condition is met.

See Also: Trigger

Syntax

[Xamarin.Forms.ContentProperty("Setters")]
public sealed class Trigger : TriggerBase, IValueProvider

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.Trigger are listed below.

See Also: TriggerBase

Public Constructors

Initializes a new Trigger instance.

Public Properties

PropertyBindableProperty. Gets or sets the property whose value will be compared to Trigger.Value to determine when to invoke the setters.
[read-only]
SettersIList<Setter>. Gets the list of Setter objects that will be applied when the property that is named by Trigger.Property becomes equal to Trigger.Value.
ValueObject. Gets or sets the value of the property, named by the Trigger.Property property, that will cause the setters to be applied.

Explicitly Implemented Interface Members

Trigger$IValueProvider.ProvideValue(IServiceProvider)This property supports XAML infrastructure and is not intended to be directly used by application developers.