O'Reilly logo

Mastering Xamarin UI Development 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 PlatformEffects using the Effects API for the iOS platform

In this section, we will build the iOS portion of our PlatformEffects, which will allow us to customize the appearance of the Xamarin.Forms control elements. We will be creating two completely different platform effects-LabelShadow and ButtonShadow, for both the iOS and Android platforms.

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

  1. Create a new folder within the TrackMyWalks.iOS project, called PlatformEffects.
  2. Next, create an empty class within the PlatformEffects folder for our TrackMyWalks.iOS project.
  3. Then, enter ButtonShadowEffect as the name of the new class file to create, ensure that the ButtonShadowEffect.cs file 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