UIElement.Shadow UIElement.Shadow UIElement.Shadow UIElement.Shadow Property

Definition

Gets or sets the shadow effect cast by the element.

public : Shadow Shadow { get; set; }
Shadow Shadow();

void Shadow(Shadow shadow);
public Shadow Shadow { get; set; }
Public ReadWrite Property Shadow As Shadow

Property Value

The shadow effect cast by the element.

Additional features and requirements

Device family
Windows 10, version 1903 (introduced v10.0.18362.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v8)

Examples

Tip

For more info, design guidance, and code examples, see Z-depth and shadow.

Many common controls automatically cast shadows using a ThemeShadow.

If you have the XAML Controls Gallery app installed and meet the minimum Windows 10 version requirements above, click here to open the app and see the default shadows on common controls.

Remarks

Tip

For more info, design guidance, and code examples, see Z-depth and shadow.

Many common controls automatically cast shadows using a ThemeShadow.

The UIElement.Shadow property can be used to cast shadows from additional visual elements or custom controls.

See also