Xamarin.Forms Guides | Samples

Xamarin.Forms.EventTrigger Class

Class that represents a triggering event and a list of TriggerAction objects that will be invoked when the event is raised.

See Also: EventTrigger

Syntax

[Xamarin.Forms.ContentProperty("Actions")]
public sealed class EventTrigger : TriggerBase

Remarks

XAML for Xamarin.Forms supports the following property for the EventTrigger class:

PropertyValue
Event

The name of the event to which to respond.

Object name

The qualified name of a TriggerAction`1 implementation that has been defined by the application developer. This object is instantiated and its TriggerAction`1.Invoke method is called when the triggering event is raised. Attributes on this tag set corresponding proptery values on the TriggerAction`1 implementation

before the TriggerAction`1.Invoke method is called.

Requirements

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

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

See Also: TriggerBase

Public Constructors

Creates a new EventTrigger instance.

Public Properties

[read-only]
ActionsIList<TriggerAction>. Gets the list of TriggerAction objects that will be invoked when the event that is identified by the EventTrigger.Event property is raised.
EventString. Gets or sets the name of the event that will cause the actions that are contained in the EventTrigger.Actions to be invoked.

Protected Methods

override
OnAttached()
Internal.
override
OnDetaching()
Internal.