@@ -26,10 +26,74 @@ To achieve a glass like background in the Front or Back Layer, set the `Backgrou
2626The following code snippet demonstrates how to apply the Liquid Glass Effect to the Front or Back layer of the ` SfBackdropPage ` control:
2727
2828{% tabs %}
29- {% highlight xaml tabtitle="MainPage.xaml" hl_lines="14 16 20" %}
29+ {% highlight xaml tabtitle="MainPage.xaml" %}
30+
31+ <backdrop: SfBackdropPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui "
32+ xmlns: x ="http://schemas.microsoft.com/winfx/2009/xaml "
33+ x: Class ="AcrylicBackdropPage"
34+ xmlns: backdrop ="clr-namespace: Syncfusion .Maui.Backdrop;assembly=Syncfusion.Maui.Backdrop">
35+
36+ <backdrop:SfBackdropPage.BackLayer>
37+ <backdrop:BackdropBackLayer EnableLiquidGlassEffect="True">
38+ <Grid>
39+ <Image Source="wallpaper.jpg" Aspect="AspectFill" />
40+ <StackLayout Padding="16">
41+ <Label Text="Back layer content" FontSize="16"/>
42+ </StackLayout>
43+ </Grid>
44+ </backdrop:BackdropBackLayer>
45+ </backdrop:SfBackdropPage.BackLayer>
46+
47+ <backdrop:SfBackdropPage.FrontLayer>
48+ <backdrop:BackdropFrontLayer EnableLiquidGlassEffect="True">
49+ <Grid>
50+ <Image Source="wallpaper.jpg" Aspect="AspectFill" />
51+ <StackLayout Padding="16">
52+ <Label Text="Front layer content" FontSize="16"/>
53+ </StackLayout>
54+ </Grid>
55+ </backdrop:BackdropFrontLayer>
56+ </backdrop:SfBackdropPage.FrontLayer>
57+ </backdrop: SfBackdropPage >
3058
3159{% endhighlight %}
32- {% highlight c# tabtitle="MainPage.xaml.cs" hl_lines="21 22 23 24 25 30" %}
60+ {% highlight c# tabtitle="MainPage.xaml.cs" %}
61+
62+ using Syncfusion.Maui.Backdrop;
63+
64+ this.BackLayer = new BackdropBackLayer
65+ {
66+ EnableLiquidGlassEffect = true,
67+ Content = new Grid
68+ {
69+ Children =
70+ {
71+ new Image { Source = "wallpaper.jpg", Aspect = Aspect.AspectFill },
72+ new VerticalStackLayout
73+ {
74+ Padding = 16,
75+ Children = { new Label { Text = "Back layer content", FontSize = 16 } }
76+ }
77+ }
78+ }
79+ };
80+
81+ this.FrontLayer = new BackdropFrontLayer
82+ {
83+ EnableLiquidGlassEffect = true,
84+ Content = new Grid
85+ {
86+ Children =
87+ {
88+ new Image { Source = "wallpaper.jpg", Aspect = Aspect.AspectFill },
89+ new VerticalStackLayout
90+ {
91+ Padding = 16,
92+ Children = { new Label { Text = "Front layer content", FontSize = 16 } }
93+ }
94+ }
95+ }
96+ };
3397
3498{% endhighlight %}
3599{% endtabs %}
0 commit comments