Building the CameraPage

Now for the final page of the solution, the CameraPage introduces some new tricks to handle orientation changes with Grid positions. We will be using Converters to change rows and columns on the Grid to reposition elements when we change orientation.

We are going to start with adding some converters to the project. Let's create a new folder in the Camera project, add a new file called NotConverter.cs, and implement the following:

public class NotConverter : IValueConverter { #region Public Methods public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) { var b = value as bool?; if (b != null) { return !b; } return value; } public object ConvertBack(object value, Type ...

Get Xamarin Blueprints now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.