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:
Let's add a new folder called Effects
inside the Camera
project, add in a new file called LabelShadowEffect.cs
, and implement the following:
public class LabelShadowEffect : RoutingEffect { #region Public Properties public float Radius { get; set; } public Color Color { get; set; } public float DistanceX { get; set; } public float DistanceY { get; set; } #endregion #region Constructors ...