Skip to content

Shadow Effect

The Shadow Effect makes it easy to add a drop-shadow to any control.

Button without Shadow

NoShadow

Button with Shadow

Shadow

Methods

public static void SetElevation(BindableObject view, double value)

Sets the elevation distance.

view: View to set elevation on.

value: Amount of elevation.

public static void SetCornerRadius(BindableObject view, double value)

Sets the corner radius.

view: View to apply rounding to.

value: Amount of rounding to apply.

Example Usage

// Add the shadow effect to the control
clearButton.Effects.Add(new Aurora.Effects.ShadowEffect());

// Set the corner radius of the shadow effect and apply it to the control
Aurora.Effects.ShadowEffect.SetCornerRadius(clearButton, 6);