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 our WalkTrailInfoPage to use Custom Animations

In this section, we will take a look at how to update our code-behind file for our WalkTrailInfoPage to create and implement a Custom Animation using the Animation class, which will be called whenever the BeginTrailWalk button is clicked using C# code.

Let's start updating the code-behind for our WalkTrailInfoPage by performing the following steps:

  1. Locate and open the WalkTrailInfoPage.xaml.cs code-behind file, which is located in the Views folder, ensure that it is displayed in the code editor, and enter the following highlighted code sections:
     //     //  WalkTrailInfoPage.xaml.cs     //  Displays related trail information chosen from the      //  WalksMainPage     // // Created by Steven F. Daniel ...

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