Skip to main content

DropShadowDirectionEffect Class

Definition

Namespace:Avalonia.Media
Assembly:Avalonia.Base
Package:Avalonia

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

public class DropShadowDirectionEffect

Inheritance: object -> AvaloniaObject -> Animatable -> Effect -> DropShadowEffectBase -> DropShadowDirectionEffect

Implements: IDirectionDropShadowEffect, IDropShadowEffect, IEffect, IMutableEffect

Constructors

NameDescription
DropShadowDirectionEffectNo summary available.

DropShadowDirectionEffect Constructor

public DropShadowDirectionEffect()

Methods

NameDescription
ToImmutableNo summary available.
ParseInherited from Effect.
Bind (8 overloads)Binds a Avalonia.AvaloniaProperty to an Avalonia.Data.BindingBase. Inherited from AvaloniaObject.
CheckAccessReturns a value indicating whether the current thread is the UI thread. Inherited from AvaloniaObject.
ClearValue (4 overloads)Clears a Avalonia.AvaloniaProperty's local value. Inherited from AvaloniaObject.
CoerceValueCoerces the specified Avalonia.AvaloniaProperty. Inherited from AvaloniaObject.
EqualsCompares two objects using reference equality. Inherited from AvaloniaObject.
GetBaseValueInherited from AvaloniaObject.
GetHashCodeGets the hash code for the object. Inherited from AvaloniaObject.
GetValue (3 overloads)Gets a Avalonia.AvaloniaProperty value. Inherited from AvaloniaObject.
IsAnimatingChecks whether a Avalonia.AvaloniaProperty is animating. Inherited from AvaloniaObject.
IsSetChecks whether a Avalonia.AvaloniaProperty is set on this object. Inherited from AvaloniaObject.
SetCurrentValue (2 overloads)Sets the value of a dependency property without changing its value source. Inherited from AvaloniaObject.
SetValue (3 overloads)Sets a Avalonia.AvaloniaProperty value. Inherited from AvaloniaObject.
VerifyAccessChecks that the current thread is the UI thread and throws if not. Inherited from AvaloniaObject.

ToImmutable Method

public Avalonia.Media.IImmutableEffect ToImmutable()

Returns

Avalonia.Media.IImmutableEffect

Properties

NameDescription
DirectionNo summary available.
OffsetXNo summary available.
OffsetYNo summary available.
ShadowDepthNo summary available.
BlurRadiusInherited from DropShadowEffectBase.
ColorInherited from DropShadowEffectBase.
OpacityInherited from DropShadowEffectBase.
TransitionsGets or sets the property transitions for the control. Inherited from Animatable.
DispatcherReturns the Avalonia.AvaloniaObject.Dispatcher that this Avalonia.AvaloniaObject is associated with. Inherited from AvaloniaObject.
ItemInherited from AvaloniaObject.

Direction Property

public double Direction { get; set; }

OffsetX Property

public double OffsetX { get; set; }

OffsetY Property

public double OffsetY { get; set; }

ShadowDepth Property

public double ShadowDepth { get; set; }

Fields

NameDescription
DirectionPropertyNo summary available.
ShadowDepthPropertyNo summary available.
BlurRadiusPropertyInherited from DropShadowEffectBase.
ColorPropertyInherited from DropShadowEffectBase.
OpacityPropertyInherited from DropShadowEffectBase.
TransitionsPropertyDefines the Avalonia.Animation.Animatable.Transitions property. Inherited from Animatable.

DirectionProperty Field

public Avalonia.StyledProperty<TValue><double> DirectionProperty

ShadowDepthProperty Field

public Avalonia.StyledProperty<TValue><double> ShadowDepthProperty

Events

NameDescription
InvalidatedInherited from Effect.
PropertyChangedRaised when a Avalonia.AvaloniaProperty value changes on this object. Inherited from AvaloniaObject.