Skip to content

Switch Color Effect

The Switch Color Effect gives you, as the developer, an easy way to stylize switch UI elements throughout your app.

A Standard UISwitch


A UISwitch with Blue Switch Color Effect Applied



public static void SetColor(BindableObject view, Color value)

Sets the color.

view: View to set the color on.

value: Color to set to. Takes a Xamarin.Forms.Color.

Example Usage

// Create a new effect
var effect = Effect.Resolve(Aurora.Effects.SwitchColorEffect.EffectName);

// Add the effect to the switch

// Set the color of the effect
Aurora.Effects.SwitchColorEffect.SetColor(BlueColorSwitch, Xamarin.Forms.Color.Blue);