We want to add some values to the app as well. We can do this by adding two labels below the collection of Swiper controls. Each time a user rates an image, we will increment one of two counters and display the result.
So, let's add the XAML code needed to display the labels, as follows:
- Open MainPage.xaml.
- Replace the comment <!-- Placeholder for later --> with the following code marked in bold:
<Grid Grid.Row="1" Padding="30">
<Grid.RowDefinitions>
<RowDefinition Height="auto" />
<RowDefinition Height="auto" />
<RowDefinition Height="auto" />
<RowDefinition Height="auto" />
</Grid.RowDefinitions>
<Label Text="LIKES" />
<Label x:Name="likeLabel"
Grid.Row="1"
Text="0"
FontSize="Large"
FontAttributes...