Updating the WalksMainPage code-behind using C#
Now that we have created the CreateNewTrailDetails
class that will be responsible for handling the automated UI testing using the UITest
framework, our next step is to begin updating the underlying C# code within our WalksMainPage
code-behind file in order to disable displaying our TwitterSignInPage
ViewModel.
Let's take a look at how we can achieve this by following these steps:
- Locate and open the
WalksMainPage.xaml.cs
file which is located within theViews
folder, ensuring that it is displayed within the code editor, and enter the following highlighted code sections:
// // WalksMainPage.xaml.cs // Displays Walk Information within a ListView control from an array// // Created by Steven F. Daniel on 14/05/2018 // Copyright © 2018 GENIESOFT STUDIOS. All rights reserved. // using System; using TrackMyWalks.Models; using TrackMyWalks.Services; using TrackMyWalks.ViewModels; using Xamarin.Forms; ...