Xamarin.Forms Guides | Samples

Xamarin.Forms.DataTrigger Class

Class that represents a binding condition and a list of Setter objects that will be applied when the condition is met.

See Also: DataTrigger


public sealed class DataTrigger : TriggerBase, IValueProvider


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


The name of the property whose value to compare against Value.


The value of the property that will trigger the setters in Setters.


A list of setters that are called when the property condition is met. Each Setter tag or tag pair in the list has a Property and Value that represents the assignments to perform when the condition is met.


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

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

See Also: TriggerBase

Public Constructors

Initializes a new DataTrigger instance.

Public Properties

BindingBindingBase. Gets or sets the binding whose value will be compared to DataTrigger.Value to determine when to invoke the setters.
SettersIList<Setter>. Gets the list of Setter objects that will be applied when the binding that is named by the DataTrigger.Binding property becomes equal to DataTrigger.Value.
ValueObject. Gets or sets the value of the binding, named by the DataTrigger.Binding property, that will cause the setters to be applied.

Explicitly Implemented Interface Members