I have XAML that looks like this:
Create a directory called Templates, and then create a new View class, MyCustomGrid
like so:
Templates/MyCustomGrid.xaml:
Templates/MyCustomGrid.xaml.cs
using Xamarin.Forms;
namespace MyProject.Templates
{
public partial class MyCustomGrid : Grid
{
public MyCustomGrid()
{
InitializeComponent();
}
}
}
To use it in another page, ie MyPage.xaml: