Skip to Content

Opacity

Applies a uniform opacity to its child element. Maps to UIToolkit’s opacity style property on a VisualElement.

Constructor

Opacity

Creates an Opacity element.

ParameterDescription
valueOpacity in the range [0, 1]. Clamped to this range.
childThe child element to apply opacity to. Must not be null.
keyAn optional key for reconciliation identity.

Properties

Value

The opacity value in the range [0, 1]. 0 is fully transparent, 1 is fully opaque.

Last updated on