O'Reilly logo

Seven Mobile Apps in Seven Weeks by Tony Hillerson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Day 3: Subtracting Platform-Specific Code

Or, Building a Cross-Platform UI with Xamarin.Forms

You may think that there’s not much more we could do now that we have an iOS and an Android app working with as little platform-specific code as possible.

But, today we’ll create a new project using Xamarin.Forms, which allows us to create a fully native, cross-platform app using a common codebase for the model and the UI layer. Let’s get started by creating a Forms project.

Building a Cross-Platform UI with Forms

We’ll start out with a brand-new project and copy over the shared Calc project for reuse instead of trying to apply the Xamarin.Forms project to the previous solution.

Setting Up the Forms Solution

Create a new solution, this time selecting ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required