Description
The BackdropFilterContrast
property in the Sandbox.UI.BaseStyles
class represents the backdrop-filter-contrast
CSS property. This property allows you to apply a contrast filter to the backdrop of an element, which can enhance or reduce the contrast of the background content.
Usage
To use the BackdropFilterContrast
property, you can set it to a Sandbox.UI.Length
value, which specifies the contrast level. The value can be a percentage or a number, where 1
represents the original contrast, values greater than 1
increase the contrast, and values less than 1
decrease the contrast.
Example
// Example of setting the BackdropFilterContrast property
var styles = new BaseStyles();
styles.BackdropFilterContrast = new Length(1.5f); // Increase contrast by 50%