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: ...

Get Xamarin Blueprints now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.