O'Reilly logo

Xamarin Blueprints by Michael Williams

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

Platform effects

Platform effects are used to simplify native control customization, reducing the need to create CustomRenderers for small styling changes. This means we don't have to create a custom renderer every single time we want native customization. To implement a PlatformEffect, we first create a class that subclasses the PlatformEffect framework. Then we have to write platform-specific implementations for each.

Following is a small overview of how the rendering process will look among the different projects:

Platform effects

Let's add a new folder called Effects inside the Camera project, add in a new file called LabelShadowEffect.cs, and implement the following: ...

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