Skip to content

ShadowDecorator class

A decorator that draws a drop shadow behind its child element. The shadow is rendered within the decorator’s own layout bounds - use ShadowPadding to reserve space around the child.

Guide: C# Markup reference: Content

public sealed class ShadowDecorator : FrameworkElement, IVisualTreeHost
name description
ShadowDecorator() The default constructor.
BlurRadius { get; set; } Gets or sets the blur radius of the shadow.
Child { get; set; } Gets or sets the child element.
CornerRadius { get; set; } Gets or sets the corner radius of the shadow shape.
OffsetY { get; set; } Gets or sets the vertical offset of the shadow.
ShadowColor { get; set; } Gets or sets the shadow color (including alpha for intensity).
ShadowPadding { get; } Gets the padding needed around the child to accommodate the shadow extent.
static readonly BlurRadiusProperty
static readonly ChildProperty
static readonly CornerRadiusProperty
static readonly OffsetYProperty
static readonly ShadowColorProperty