Adding UI behaviors and triggers

You already must have come to the common problem of where do we write business logic, how to organize it, and reflect the requirement or give a visual hint to the user.

Validation rules and business flow is everywhere from the data layer to the UI layer, and we follow various practices to accomplish its level of input and data integrity.

This is where behaviors and triggers are introduced. The first attaches independent testable functionality to our UI controls (think about it as an element input validator), while the later is used in XAML to express user interface changes based on monitoring properties, events, data, and a combination of expressions.

In this section, we will take a login page, similar to the Creating ...

Get Xamarin: Cross-Platform Mobile Application Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.