Chapter 2. Declare Once, Visualize Everywhere
In this chapter, we will cover the following recipes:
- Creating a tabbed-page cross-platform application
- Adding UI behaviors and triggers
- Configuring XAML with platform-specific values
- Using custom renderers to change the look and feel of views
Introduction
Xamarin.Forms is a cross-platform UI framework. So far, we have seen examples of creating the UI in code using procedural code, creating objects, wiring them to events, and adding them to collections. That's OK, but when it comes to a more complicated UI structure, this code can get very large, hard to understand, and difficult to visualize what has been created.
Another limitation is that we mix design code and behavior, which can become difficult to separate ...
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.