Updating the SplashPage code-behind using C#
Now that we have updated each of our ViewModels so that they can take advantage of our NavigationService
class, as well as updating each of the underlying C# code, contained within the ContentPages
for our TrackMyWalks
application, the next step is to begin updating the underlying C# code within our SplashPage
code-behind file. We do this in order to update the MainPage
and NavigationBar
color, as well as initialize the navigation service property for our application.
Let's take a look at how we can achieve this by following these steps:
- Open the
SplashPage.xaml.cs
code-behind file, ensuring that it is displayed within the code editor, and enter the following highlighted code sections:
// // SplashPage.xaml.cs // Displays a timed splash screen for the TrackMyWalks application // // Created by Steven F. Daniel on 14/05/2018 // Copyright © 2018 GENIESOFT STUDIOS. All rights reserved. // using System.Threading...