Solution setup
Let's begin by creating a new Xamarin.Forms
project and calling it Camera
. We also want to create the Camera.Portable
project. Now that we have built up several Xamarin.Forms
applications, we have a lot of reusable parts that will be brought across to this application.
Starting with the Camera.Portable
project, we want to copy in the IoC
, Extras
, and Logging
folders used in Chapter 7, Building a File Storage Application. Make sure all the files contained in these folders are copied in accordingly.
Tip
Don't forget to update namespaces in each code sheet.
Then we want to add the following NuGet packages for every project:
- Autofac
- Reactive extensions
Next, we want to create a folder called Enums. Add in a new folder called PageNames.cs
and implement the following:
public enum PageNames { #region Properties MainPage, CameraPage, #endregion }
Like our other projects, this will be used in the navigation setup. In this folder...