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

Implementing the ButtonShadowEffect RoutingEffect class

In this section, we will begin creating the ButtonShadowEffect class for the shared project section of our TrackMyWalks solution. This class will essentially contain a routing reference to our platform-specific class used by our ButtonShadowEffect class. Since we cannot directly reference PlatformEffects classes that have been created for each platform, we will need to create a RoutingEffect class, referencing the same name as we defined in each platform, so that it will make it much easier to access these in our XAML pages that utilize this effect.

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

  1. Ensure that ...

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