System.Nullable<Length> BackdropFilterInvert { get; set; }

robot_2Generated
code_blocksInput

Description

The BackdropFilterInvert property in the BaseStyles class represents the backdrop-filter-invert CSS property. This property is used to apply an inversion effect to the backdrop of an element, effectively inverting the colors of the background behind the element.

Usage

To use the BackdropFilterInvert property, assign it a value of type Sandbox.UI.Length or null. The value represents the percentage of inversion to apply, where 0% means no inversion and 100% means full inversion. If set to null, the property will not apply any inversion effect.

Example

// Example of setting the BackdropFilterInvert property
var styles = new BaseStyles();
styles.BackdropFilterInvert = new Length(100, LengthUnit.Percent); // Apply full inversion

// To remove the inversion effect
styles.BackdropFilterInvert = null;