The FilterSaturate
property in the BaseStyles
class represents the filter-saturate
CSS property. This property is used to adjust the saturation of an element's content, allowing you to increase or decrease the intensity of colors.
The FilterSaturate
property in the BaseStyles
class represents the filter-saturate
CSS property. This property is used to adjust the saturation of an element's content, allowing you to increase or decrease the intensity of colors.
To use the FilterSaturate
property, assign it a value of type Sandbox.UI.Length
. This value can be a percentage or a unitless number, where 1
represents the original saturation level, values greater than 1
increase saturation, and values less than 1
decrease it.
BaseStyles styles = new BaseStyles(); styles.FilterSaturate = new Length(1.5f); // Increase saturation by 50%