Show / Hide Table of Contents

Class DropShadowEffect

Applies a shadow behind a visual object at a slight offset. The offset is determined by mimicking a casting shadow from an imaginary light source.

Inheritance
System.Object
DependencyObject
Effect
DropShadowEffect
Inherited Members
Effect.ImplicitInput
Effect.EffectMapping
DependencyObject.GetValue(DependencyProperty)
DependencyObject.SetCurrentValue(DependencyProperty, Object)
DependencyObject.ReadLocalValue(DependencyProperty)
DependencyObject.SetValue(DependencyProperty, Object)
DependencyObject.SetValue(DependencyPropertyKey, Object)
DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs)
DependencyObject.CoerceValue(DependencyProperty)
DependencyObject.Dispatcher
DependencyObject.INTERNAL_OnAttachedToVisualTree()
DependencyObject.INTERNAL_OnDetachedFromVisualTree()
DependencyObject.ClearValue(DependencyProperty)
DependencyObject.ClearValue(DependencyPropertyKey)
DependencyObject.CheckAccess()
DependencyObject.GetAnimationBaseValue(DependencyProperty)
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: System.Windows.Media.Effects
Assembly: OpenSilver.dll
Syntax
public sealed class DropShadowEffect : Effect, IDependencyObject

Constructors

| Improve this Doc View Source

DropShadowEffect()

Initializes a new instance of the DropShadowEffect class.

Declaration
public DropShadowEffect()

Fields

| Improve this Doc View Source

BlurRadiusProperty

Identifies the BlurRadius dependency property.

Declaration
public static readonly DependencyProperty BlurRadiusProperty
Field Value
Type Description
DependencyProperty
| Improve this Doc View Source

ColorProperty

Identifies the Color dependency property.

Declaration
public static readonly DependencyProperty ColorProperty
Field Value
Type Description
DependencyProperty
| Improve this Doc View Source

DirectionProperty

Identifies the Direction dependency property.

Declaration
public static readonly DependencyProperty DirectionProperty
Field Value
Type Description
DependencyProperty
| Improve this Doc View Source

OpacityProperty

Identifies the Opacity dependency property.

Declaration
public static readonly DependencyProperty OpacityProperty
Field Value
Type Description
DependencyProperty
| Improve this Doc View Source

ShadowDepthProperty

Identifies the ShadowDepth dependency property.

Declaration
public static readonly DependencyProperty ShadowDepthProperty
Field Value
Type Description
DependencyProperty

Properties

| Improve this Doc View Source

BlurRadius

Gets or sets how defined the edges of the shadow are (how blurry the shadow is).

Declaration
public double BlurRadius { get; set; }
Property Value
Type Description
System.Double

How blurry the shadow is. The default is 5.

| Improve this Doc View Source

Color

Gets or sets the color of the shadow.

Declaration
public Color Color { get; set; }
Property Value
Type Description
Color

The color of the shadow. The default is a color with ARGB value of FF000000 (black).

| Improve this Doc View Source

Direction

Gets or sets the angle at which the shadow is cast.

Declaration
public double Direction { get; set; }
Property Value
Type Description
System.Double

The angle at which the shadow is cast, where 0 is immediately to the right of the object and positive values move the shadow counterclockwise. The default is 315.

| Improve this Doc View Source

Opacity

Gets or sets the degree of opacity of the shadow.

Declaration
public double Opacity { get; set; }
Property Value
Type Description
System.Double

The degree of opacity. The valid range of values is from 0 through 1, where 0 is completely transparent and 1 is completely opaque. The default is 1.

| Improve this Doc View Source

ShadowDepth

Gets or sets the distance between the object and the shadow that it casts.

Declaration
public double ShadowDepth { get; set; }
Property Value
Type Description
System.Double

The distance between the plane of the object casting the shadow and the shadow plane measured in devicepixels. The valid range of values is from 0 through 300. The default is 5.

Extension Methods

DependencyObjectHelper.GetSelfAndAncestors(DependencyObject)
VisualTreeExtensions.GetVisualAncestors(DependencyObject)
VisualTreeExtensions.GetVisualAncestorsAndSelf(DependencyObject)
VisualTreeExtensions.GetVisualChildren(DependencyObject)
VisualTreeExtensions.GetVisualChildrenAndSelf(DependencyObject)
VisualTreeExtensions.GetVisualDescendants(DependencyObject)
VisualTreeExtensions.GetVisualDescendantsAndSelf(DependencyObject)
VisualTreeExtensions.GetVisualSiblings(DependencyObject)
VisualTreeExtensions.GetVisualSiblingsAndSelf(DependencyObject)
  • Improve this Doc
  • View Source