Implementing the WalkEntryPage code using C#
Now that we have defined our user interface for our ContentPage
using XAML, the next step is to begin creating the underlying C# code within our WalkEntryPage
code-behind file, which will eventually be used to save all information entered within this page to a database and refresh our ListView
that's contained within our WalksMainPage
.
Let's take a look at how we can achieve this by following these steps:
Open the WalkEntryPage.xaml.cs
code-behind file, ensuring that it is displayed within the code editor, and enter the following code snippet:
// // WalkEntryPage.xaml.cs // Data Entry screen that allows new walk information to be added // // Created by Steven F. Daniel on 14/05/2018 // Copyright © 2018 GENIESOFT STUDIOS. All rights reserved. // using System; using Xamarin.Forms; namespace TrackMyWalks.Views { public partial class WalkEntryPage : ContentPage { public WalkEntryPage() { InitializeComponent...