+1 vote
in Xamarin Exordium by
What are the triggers? How many types of triggers are available?

1 Answer

0 votes
by

Triggers allow us to declare actions in XAML, which changes the appearance of the control when specific condition met for a particular property of the control.

We can add triggers at control-level, page-level, or application-level in the resource dictionary. Here are the four types of triggers available. These are:

  • Property Trigger: This trigger executes when the property of the control set a particular value.
  • Data Trigger: This trigger is similar to a property trigger, but it uses the data binding.
  • Event Trigger: This trigger occurs when an event occurs on the control.
  • Multi Trigger: This trigger allows us to set the conditions of multiple triggers before the action occurs.
...