Skip to content

Commit d75b4b7

Browse files
committed
997111-Addressed review changes.
1 parent 0e989fe commit d75b4b7

File tree

1 file changed

+2
-21
lines changed

1 file changed

+2
-21
lines changed

MAUI/ImageEditor/liquid-glass-effect.md

Lines changed: 2 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ control: SfImageEditor
77
documentation: ug
88
---
99

10-
# Liquid Glass Effect in Image Editor
10+
# Liquid Glass Effect for Image Editor
1111

1212
The Liquid Glass Effect introduces a modern, translucent design with adaptive color tinting and light refraction, creating a sleek, glass like user experience that remains clear and accessible. This section explains how to enable and customize the effect in the Syncfusion® .NET MAUI Image Editor (SfImageEditor) control.
1313

@@ -64,28 +64,11 @@ The following code snippet demonstrates how to apply the Liquid Glass Effect to
6464
</Grid>
6565

6666
{% endhighlight %}
67-
{% highlight c# tabtitle="MainPage.xaml.cs" hl_lines="21 23 24 25 28" %}
67+
{% highlight c# tabtitle="MainPage.xaml.cs" hl_lines="4 6 7 8 9 11" %}
6868

6969
using Syncfusion.Maui.Core;
7070
using Syncfusion.Maui.ImageEditor;
7171

72-
var gradientBrush = new LinearGradientBrush
73-
{
74-
StartPoint = new Point(0, 0),
75-
EndPoint = new Point(0, 1),
76-
GradientStops = new GradientStopCollection
77-
{
78-
new GradientStop { Color = Color.FromArgb("#0F4C75"), Offset = 0.0f },
79-
new GradientStop { Color = Color.FromArgb("#3282B8"), Offset = 0.5f },
80-
new GradientStop { Color = Color.FromArgb("#1B262C"), Offset = 1.0f }
81-
}
82-
};
83-
84-
var grid = new Grid
85-
{
86-
Background = gradientBrush
87-
};
88-
8972
var glassView = new SfGlassEffectsView
9073
{
9174
CornerRadius = 20,
@@ -95,8 +78,6 @@ var glassView = new SfGlassEffectsView
9578

9679
this.imageEditor.EnableLiquidGlassEffect = true;
9780
glassView.Content = this.imageEditor;
98-
grid.Children.Add(glassView);
99-
this.Content = grid;
10081

10182
{% endhighlight %}
10283
{% endtabs %}

0 commit comments

Comments
 (0)