The next step is to add the StackLayout for denying photos on the left-hand side of the control, as follows:
- Open Controls/SwiperControl.xaml.
- Add the following code under the comment <!-- StackLayout for deny here -->:
<StackLayout x:Name="denyStackLayout" Opacity="0"
Padding="0, 100" HorizontalOptions="End">
<Label Text="DENY"
TextColor="Red"
FontSize="30"
Rotation="-20"
FontAttributes="Bold" />
</StackLayout>
The setup for the left-hand side StackLayout is the same, except that it should be in the first column, which is the default, so there is no need to add a Grid.Column attribute. We have also specified HorizontalOptions="End", which means that the content should be right-justified.