O'Reilly logo

Mastering Xamarin UI Development - Second Edition by Steven F. Daniel

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Updating the App.xaml class to target various platforms

Now that we have successfully created all of the ContentPages that make up the user interface for our TrackMyWalks app using XAML, as well as implemented the code within the code-behind files for each of the user interfaces, the next step is to make some changes to our App.xaml.cs file.

The App.xaml.cs file is essentially the main class for the Xamarin.Forms application and is called whenever our TrackMyWalks app is started. Within this class, we will make some changes to the OnStart method to check what target OS platform we are running on and then call and display our SplashPage for our TrackMyWalks.Android app. Alternatively, if we are running on iOS, we will display the main page ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required