Updating the WalksMainPage code-behind using C#
Now that we have created the TwitterSignInPageRenderer
class that will be responsible for displaying the Twitter UI dialog, our next step is to begin updating the underlying C# code within our WalksMainPage
code-behind file. This will give it the ability to display our TwitterSignInPage
ViewModel if we haven't determined that the user has signed in.
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...