EnterActions and ExitActions Triggers

Learn how to use EnterActions and ExitActions triggers in .NET MAUI.

In .NET MAUI, EnterActions and ExitActions triggers are used to define actions that are performed when the condition of the trigger changes. EnterActions trigger gets fired when the condition defined in the trigger is met. ExitActions trigger is fired when the condition is no longer met.

These types of triggers are alternatives to the Setter element on any standard trigger type. To see how they work, we have the following project setup.

Get hands-on with 1400+ tech skills courses.