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.
Inherited Members
Namespace: System.Windows.Media.Effects
Assembly: OpenSilver.dll
Syntax
public sealed class DropShadowEffect : Effect, IDependencyObject
Constructors
| Improve this Doc View SourceDropShadowEffect()
Initializes a new instance of the DropShadowEffect class.
Declaration
public DropShadowEffect()
Fields
| Improve this Doc View SourceBlurRadiusProperty
Identifies the BlurRadius dependency property.
Declaration
public static readonly DependencyProperty BlurRadiusProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
ColorProperty
Identifies the Color dependency property.
Declaration
public static readonly DependencyProperty ColorProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
DirectionProperty
Identifies the Direction dependency property.
Declaration
public static readonly DependencyProperty DirectionProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
OpacityProperty
Identifies the Opacity dependency property.
Declaration
public static readonly DependencyProperty OpacityProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
ShadowDepthProperty
Identifies the ShadowDepth dependency property.
Declaration
public static readonly DependencyProperty ShadowDepthProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
Properties
| Improve this Doc View SourceBlurRadius
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. |
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). |
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. |
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. |
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. |