Ghost1372

everything can be handy

BlurEffectBrush

1
public partial class BlurEffectBrush  : XamlCompositionBrushBase

Property

Name
ImageUri

Example

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
 <Grid Width="350"
HorizontalAlignment="Left">
<Grid.Background>
<LinearGradientBrush>
<GradientStopCollection>
<GradientStop Offset="0.2" Color="#485563" />
<GradientStop Offset="0.8" Color="#29323C" />
</GradientStopCollection>
</LinearGradientBrush>
</Grid.Background>
<Grid Margin="10,10,20,20">
<Grid.Background>
<ImageBrush ImageSource="ms-appx:///Assets/Landscapes/Landscape-12.jpg"
Stretch="UniformToFill" />
</Grid.Background>
<Grid Padding="10">
<Path HorizontalAlignment="Center"
VerticalAlignment="Center"
Data="M200 20 a200 200 0 1 0 1 0m-1 100a100 100 0 1 1 -1 0"
Stretch="Uniform">
<Path.Fill>
<dev:BlurEffectBrush FallbackColor="#80C0C0C0" />
</Path.Fill>
</Path>
</Grid>
</Grid>
</Grid>

DevWinUI

0%