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

Creating and implementing the TwitterSignInPageViewModel using C#

In this section, we'll take a look at how to create the TwitterSignInPageViewModel class so that it can communicate with our TwitterSignInPage, as well as any data bindings associated with the ContentPage that will be used by the ViewModel. We will create and implement the underlying C# code for our ViewModel, which will be used by our TwitterSignInPage code-behind file so that it can navigate within our NavigationStack.

Let's start by creating the TwitterSignInPageViewModel for our TrackMyWalks app by performing the following steps:

  1. Ensure that the TrackMyWalks solution is open within the Visual Studio for Mac IDE.
  2. Next, right-click on the ViewModels folder, and choose

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