DropShadow applies an underlying shadow to an Element.

Location

Namespace
Fuse.Effects
Package
Fuse.Effects 2.9.1
Show Uno properties and methods

Interface of DropShadow

Angle : float ux

The angle, in degrees, at which light is hitting the element.

Distance : float ux

The distance in points the shadow should be offset from its source.

Spread : float ux

Controls how the shadow drops off. The closer to 0, the more linear. Keep this value low (experiment below 1.0), or you will get artifacts.

Inherited from BasicEffect

Inherited from Effect

Inherited from Node

ContextParent : Node uno

The context parent is the semantic parent of this node. It is where non-UI structure should be resolved, like looking for the DataContext, a Navigation, or other semantic item.

FindNodeByName(Selector, Predicate<Node> (Node)) : Node uno

Finds the first node with a given name that satisfies the given acceptor. The serach algorithm works as follows: Nodes in the subtree are matched first, then it matches the nodes in the subtrees ofthe ancestor nodes by turn all the way to the root. If no matching node is found, the function returns null.

IsRootingStarted : bool uno

Whether rooting of this node has started. Note that even if this property returns true, rooting may not yet be completed for the node. See also IsRootingCompleted.

Name : Selector ux

Run-time name of the node. This property is automatically set using the ux:Name attribute.

OnRooted uno

If you override OnRooted you must call base.OnRooted() first in your derived class. No other processing should happen first, otherwise you might end up in an undefined state.

Inherited from PropertyObject

Inherited from object

Attached UX Attributes

GlobalKey (attached by Resource) : string ux

The ux:Global attribute creates a global resource that is accessible everywhere in UX markup.

Implemented Interfaces

IScriptObject uno

Interface for objects that can have a script engine representation

Examples

The following example displays a Rectangle with a drop shadow.

<Rectangle Margin="40" Color="#9b59b6">
    <DropShadow Size="10" Distance="3" Spread="0.05" Color="#0008" Angle="90" />
</Rectangle>

Or in its simplest form:

<Rectangle Margin="40" Color="#fff">
    <DropShadow />
</Rectangle>