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 ButtonShadowEffect (Android)

In this section, we will begin creating the ButtonShadowEffect class for the Android section of our TrackMyWalks solution, which will essentially contain platform-specific methods that will be used by our ButtonShadowEffect class. The advantage of creating a ButtonShadowEffect class is that it's much easier to modify or add additional control properties that will be used by those XAML pages that utilize this class.

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

  1. Ensure that the TrackMyWalks solution is open in the Visual Studio for Mac IDE.
  2. Right-click on the TrackMyWalks.Android project, choose Add | New Folder ...

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