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 WalkTrailInfoPage code-behind using C#

Now that we have updated our WalkTrailInfoPage user interface to include the updated Padding property that will represent the layout space and the bounding region into which each of the child elements should be arranged when displaying our walk trail information, the next step is to begin updating the underlying C# code within our WalkTrailInfoPage code-behind file. We do this so that it can communicate with our WalkTrailInfoPageViewModel, which will be used to display information associated with the chosen walk trail.

Let's take a look at how we can achieve this by following these steps:

Open the WalkTrailInfoPage.xaml.cs code-behind file, ensuring that it is displayed within the code editor, ...

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