The ARView control belongs in the .NET Standard project since it will be a part of both applications. It's a standard Xamarin.Forms control that inherits directly from Xamarin.Forms.View. It will not load any Extensible Application Markup Language (XAML) (so it will simply be a single class), nor will it contain any functionality other than simply being defined, so we can add it to the main grid.
Go over to Visual Studio and go through the following three steps to create an ARView control:
- In the WhackABox project, add a folder called Controls.
- In the Controls folder, create a new class called ARView.
- Add the following code to the ARView class:
using Xamarin.Forms;
namespace WhackABox.Controls
{
public class ARView : View
{
}
}
What we have created here is a simple class, without implementation, that inherits from Xamarin.Forms.View. The point of this is to make use of custom renderers for each platform, allowing us to...