Table of Contents

Class DropShadowDirectionEffect

Namespace
Avalonia.Media
Assembly
Avalonia.Base.dll

This class is compatible with WPF's DropShadowEffect and provides Direction and ShadowDepth properties instead of OffsetX/OffsetY

public sealed class DropShadowDirectionEffect : DropShadowEffectBase, INotifyPropertyChanged, IDropShadowEffect, IMutableEffect, IEffect
Inheritance
DropShadowDirectionEffect
Implements
Inherited Members
Extension Methods

Constructors

DropShadowDirectionEffect()

public DropShadowDirectionEffect()

Fields

DirectionProperty

public static readonly StyledProperty<double> DirectionProperty

Field Value

StyledProperty<double>

ShadowDepthProperty

public static readonly StyledProperty<double> ShadowDepthProperty

Field Value

StyledProperty<double>

Properties

Direction

public double Direction { get; set; }

Property Value

double

OffsetX

public double OffsetX { get; }

Property Value

double

OffsetY

public double OffsetY { get; }

Property Value

double

ShadowDepth

public double ShadowDepth { get; set; }

Property Value

double

Methods

ToImmutable()

Creates an immutable clone of the effect.

public IImmutableEffect ToImmutable()

Returns

IImmutableEffect

The immutable clone.