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

robot_2Generated
code_blocksInput

Description

The BackdropFilterBrightness property in the Sandbox.UI.BaseStyles class represents the backdrop-filter-brightness CSS property. This property allows you to adjust the brightness of the backdrop of an element, which can be useful for creating visual effects such as dimming or highlighting the background behind an element.

Usage

To use the BackdropFilterBrightness property, you can set it to a Sandbox.UI.Length value, which represents the desired brightness level. The value can be a percentage or a number, where 100% or 1 is the default brightness, values greater than 100% or 1 increase brightness, and values less than 100% or 1 decrease brightness.

Example

// Example of setting the BackdropFilterBrightness property
var styles = new BaseStyles();
styles.BackdropFilterBrightness = new Length(0.8f); // Set brightness to 80% of the original

// Apply styles to a UI element
var panel = new Panel();
panel.Style = styles;