AttachedDropShadow Class

Definition

A helper to add a composition based drop shadow to a Windows.UI.Xaml.FrameworkElement.

public sealed class AttachedDropShadow : Microsoft.Toolkit.Uwp.UI.AttachedShadowBase
type AttachedDropShadow = class
    inherit AttachedShadowBase
Public NotInheritable Class AttachedDropShadow
Inherits AttachedShadowBase
Inheritance
Windows.UI.Xaml.DependencyObject
AttachedDropShadow

Constructors

AttachedDropShadow()

Fields

CastToProperty

The Windows.UI.Xaml.DependencyProperty for CastTo

CornerRadiusProperty

The Windows.UI.Xaml.DependencyProperty for CornerRadius

IsMaskedProperty

Identifies the IsMasked dependency property.

Properties

BlurRadius

Gets or sets the blur radius of the shadow.

(Inherited from AttachedShadowBase)
CastTo

Gets or sets the Windows.UI.Xaml.Controls.Panel to be used as a backdrop to cast shadows on.

Color

Gets or sets the color of the shadow.

(Inherited from AttachedShadowBase)
CornerRadius

Gets or sets the roundness of the shadow's corners.

IsMasked

Gets or sets a value indicating whether the panel uses an alpha mask to create a more precise shadow vs. a quicker rectangle shape.

IsSupported

Gets a value indicating whether or not this AttachedShadowBase implementation is supported on the current platform.

Offset

Gets or sets the offset of the shadow as a string representation of a Vector3.

(Inherited from AttachedShadowBase)
Opacity

Gets or sets the opacity of the shadow.

(Inherited from AttachedShadowBase)
SupportsOnSizeChangedEvent

Gets a value indicating whether or not OnSizeChanged should be called when Windows.UI.Xaml.FrameworkElement.SizeChanged is fired.

(Inherited from AttachedShadowBase)

Methods

EnumerateElementContexts()

Gets an enumeration over the current list of AttachedShadowElementContext of elements using this shared shadow definition.

(Inherited from AttachedShadowBase)
GetElementContext(FrameworkElement)

Get the associated AttachedShadowElementContext for the specified Windows.UI.Xaml.FrameworkElement.

(Inherited from AttachedShadowBase)
GetShadowClip(AttachedShadowElementContext)

Get the Windows.UI.Composition.CompositionClip for the shadow's Windows.UI.Composition.SpriteVisual

(Inherited from AttachedShadowBase)
GetShadowMask(AttachedShadowElementContext)

Get a Windows.UI.Composition.CompositionBrush in the shape of the element that is casting the shadow.

(Inherited from AttachedShadowBase)
OnElementContextInitialized(AttachedShadowElementContext)

Override to handle when the AttachedShadowElementContext for an element is being initialized.

(Inherited from AttachedShadowBase)
OnElementContextUninitialized(AttachedShadowElementContext)

Override to handle when the AttachedShadowElementContext for an element is being uninitialized.

(Inherited from AttachedShadowBase)
OnPropertyChanged(AttachedShadowElementContext, DependencyProperty, Object, Object)

This method is called when a DependencyProperty is changed.

(Inherited from AttachedShadowBase)
OnSizeChanged(AttachedShadowElementContext, Size, Size)

This method is called when the element size changes, and SupportsOnSizeChangedEvent = true.

(Inherited from AttachedShadowBase)
SetElementChildVisual(AttachedShadowElementContext)

Sets SpriteVisual as a child visual on Element

(Inherited from AttachedShadowBase)
UpdateShadowClip(AttachedShadowElementContext)

Update the clipping on the shadow's Windows.UI.Composition.SpriteVisual.

(Inherited from AttachedShadowBase)
UpdateShadowMask(AttachedShadowElementContext)

Update the mask that gives the shadow its shape.

(Inherited from AttachedShadowBase)

Applies to