Book Image

Cross-platform UI Development with Xamarin.Forms

By : Paul Johnson
Book Image

Cross-platform UI Development with Xamarin.Forms

By: Paul Johnson

Overview of this book

Table of Contents (22 chapters)
Cross-platform UI Development with Xamarin.Forms
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Free Chapter
1
In the Beginning…
Index

Is there an alternative?


What we have here is three different implementations for three different platforms with the same interface name. This is fine and works, but what if we want something that works on all the platforms, but isn't restricted to the limited range that can be loaded and saved. Is this possible?

Yes, it is. It can be performed in one of two ways. The first is an XML-based solution, and the second is part of the SQLite database.

Note

The source code for both of the following section can be found in the accompanying source code file of this chapter.

The XML-based solution

In my first book, Xamarin Mobile Application Development for iOS, Packt Publishing, I mentioned a simple, yet effective XML-based solution (it's in Chapter 13, User Preferences if you want to check it out). The issue with anything XML-based is that it will read and write to and from the filesystem. This is not supported in the PCL part of the application, but it is on the platform side.

As with the examples covered...