Xamarin: Cross-Platform Mobile Application Development
by Jonathan Peppers, George Taskos, Can Bilgin
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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access