Building Cross-Platform Applications
There are two options for sharing code between cross-platform mobile applications: Shared Asset Projects and Portable Class Libraries. These options are discussed here; more information on Portable Class Libraries and Shared Projects is also available.
Tasky is a simple to-do list application for iOS, Android and Windows Phone. It demonstrates the basics of creating a cross-platform application with Xamarin and uses a local SQLite database.
Read the Tasky Case Study.
This section introduces Xamarin’s application development tools and discusses how to build applications that target multiple mobile platforms.
It covers a layered architecture that structures code for re-use across multiple platforms, and describes different software patterns that can be used within that architecture.
Examples are given of common application functions (like file and network operations) and how they can be built in a cross-platform way.
Finally, it briefly discusses testing, and provides references to a case study that puts these principles into action.
- Sharing Code Options
- Case Study: Tasky
- Tasky Sample App (github)
- Xamarin Mobile Application Development: Cross-Platform C# and Xamarin.Forms Fundamentals)
- Mobile Development with C# by Greg Shackles (O’Reilly)
- Professional Cross-Platform Mobile Development in C# by Scott Olson, John Hunter, Ben Horgen, Kenny Goers (Wrox)
We'd love to hear your thoughts. Choose the type you'd like to provide:
Our feedback system is built on GitHub Issues. Read more on our blog.