Skip to main content

IsInset Property

Gets or sets a value indicating whether the shadow is inset and drawn within the element rather than outside of it.

Definition

Namespace: Avalonia.Media
Assembly: Avalonia.Base (in Avalonia.Base.dll)

public bool IsInset {
get;
set; }

Property Value

Boolean

Remarks

Inset changes the shadow to inside the element (as if the content was depressed inside the box). If false (the default), the shadow is assumed to be a drop shadow (as if the box were raised above the content).

Inset shadows are drawn inside the element, above the background (even when it's transparent), but below any content.

See Also

Reference

BoxShadow Structure
Avalonia.Media Namespace