Description
The BackdropFilterSepia
property in the BaseStyles
class represents the backdrop-filter-sepia
CSS property. This property applies a sepia filter effect to the backdrop of an element, giving it a warm, brownish tone reminiscent of old photographs. The value is a nullable Length
type, allowing you to specify the intensity of the sepia effect.
Usage
To use the BackdropFilterSepia
property, assign it a Length
value that represents the desired intensity of the sepia effect. A higher value results in a more pronounced sepia tone. If you do not want to apply a sepia effect, you can set this property to null
.
Example
// Example of setting the BackdropFilterSepia property
var styles = new BaseStyles();
styles.BackdropFilterSepia = new Length(0.8f); // Apply a sepia effect with 80% intensity
// To remove the sepia effect
styles.BackdropFilterSepia = null;