A brand new blank Xamarin.Forms app named Swiper is created, with a single page called MainPage.xaml. This is located in the .NET Standard project that is referenced by all platform-specific projects. We will need to replace the XAML template with a new layout that will contain our Swiper control.
Let's edit the already existing MainPage.xaml file by replacing the default content with what we need, as follows:
- Open the MainPage.xaml file.
- Replace the content of the page with the following XAML code marked in bold:
<?xml version="1.0" encoding="utf-8"?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:Swiper"
x:Class="Swiper.MainPage">
<Grid Padding="0,40" x:Name="MainGrid">
<Grid.RowDefinitions...