File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed
Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -71,6 +71,23 @@ The following code snippet demonstrates how to apply the Liquid Glass Effect to
7171using Syncfusion.Maui.Core;
7272using Syncfusion.Maui.ImageEditor;
7373
74+ var gradientBrush = new LinearGradientBrush
75+ {
76+ StartPoint = new Point(0, 0),
77+ EndPoint = new Point(0, 1),
78+ GradientStops = new GradientStopCollection
79+ {
80+ new GradientStop { Color = Color.FromArgb("#0F4C75"), Offset = 0.0f },
81+ new GradientStop { Color = Color.FromArgb("#3282B8"), Offset = 0.5f },
82+ new GradientStop { Color = Color.FromArgb("#1B262C"), Offset = 1.0f }
83+ }
84+ };
85+
86+ var grid = new Grid
87+ {
88+ Background = gradientBrush
89+ };
90+
7491var glassView = new SfGlassEffectsView
7592{
7693 CornerRadius = 20,
@@ -80,6 +97,8 @@ var glassView = new SfGlassEffectsView
8097
8198this.imageEditor.EnableLiquidGlassEffect = true;
8299glassView.Content = this.imageEditor;
100+ grid.Children.Add(glassView);
101+ this.Content = grid;
83102
84103{% endhighlight %}
85104{% endtabs %}
You can’t perform that action at this time.
0 commit comments