Book Image

Xamarin.Forms Projects - Second Edition

By : Daniel Hindrikes, Johan Karlsson
Book Image

Xamarin.Forms Projects - Second Edition

By: Daniel Hindrikes, Johan Karlsson

Overview of this book

Xamarin.Forms is a lightweight cross-platform development toolkit for building apps with a rich user interface. Improved and updated to cover the latest features of Xamarin.Forms, this second edition covers CollectionView and Shell, along with interesting concepts such as augmented reality (AR) and machine learning. Starting with an introduction to Xamarin and how it works, this book shares tips for choosing the type of development environment you should strive for when planning cross-platform mobile apps. You’ll build your first Xamarin.Forms app and learn how to use Shell to implement the app architecture. The book gradually increases the level of complexity of the projects, guiding you through creating apps ranging from a location tracker and weather map to an AR game and face recognition. As you advance, the book will take you through modern mobile development frameworks such as SQLite, .NET Core Mono, ARKit, and ARCore. You’ll be able to customize your apps for both Android and iOS platforms to achieve native-like performance and speed. The book is filled with engaging examples, so you can grasp essential concepts by writing code instead of reading through endless theory. By the end of this book, you’ll be ready to develop your own native apps with Xamarin.Forms and its associated technologies, such as .NET Core, Visual Studio 2019, and C#.
Table of Contents (13 chapters)

Building the news app

This chapter will be all about building a news app from the beginning. It will guide you through every step, but it will not go down into every detail. For that, we recommend Chapter 2, Building Our First Xamarin.Forms App, which goes into more detail.

Happy coding!

Setting up the project

This project, like all the rest, is a File | New | Project...-style project. That means that we will not be importing any code at all. So, this first section is all about creating the project and setting up the basic project structure.

Creating the new project

Open Visual Studio and click on File | New | Project..., as illustrated in the following screenshot:

This will open the Create a new project dialog wizard. Follow these next steps:

  1. Search for xamarin forms as per screenshot.
  2. Select the Mobile App (Xamarin.Forms) project template, and click Next, as illustrated in the following screenshot:
  1. Enter News as the name of the app, as shown in the following screenshot:
  1. Click...