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 ...