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

Syntax

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

Remarks

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

PropertyValue
Property

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

Value

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

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.

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.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.
[read-only]
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