Skip to content

Latest commit

 

History

History
52 lines (35 loc) · 2.21 KB

BackdropSaturationBrush.md

File metadata and controls

52 lines (35 loc) · 2.21 KB
title author description keywords
BackdropSaturationBrush
michael-hawker
The BackdropSaturationBrush is a Brush that applies a Saturation effect to whatever is behind it in the application.
windows 10, uwp, windows community toolkit, uwp community toolkit, uwp toolkit, brush, backdrop, saturation

BackdropSaturationBrush

The BackdropSaturationBrush is a Brush that blurs whatever is behind it in the application.

[!div class="nextstepaction"] Try it in the sample app

Syntax

<Border BorderBrush="Black" BorderThickness="1" VerticalAlignment="Center" HorizontalAlignment="Center" Width="400" Height="400">
  <Border.Background>
    <media:BackdropSaturationBrush Saturation="0.25" />
  </Border.Background>
</Border>

Example Image

Backdrop Saturation

Properties

Property Type Description
Saturation double The Saturation property specifies a double value for the amount of Saturation to apply from 0.0 - 1.0. Zero being monochrome, and one being fully saturated. The default is 0.5.

Sample Project

BackdropSaturationBrush sample page Source. You can see this in action in the Windows Community Toolkit Sample App.

Requirements

Device family Universal, 10.0.16299.0 or higher
Namespace Microsoft.Toolkit.Uwp.UI.Media
NuGet package Microsoft.Toolkit.Uwp.UI.Media

API

Related Topics