Skip to content

Commit 5e1ea26

Browse files
committed
997111-Highlighted important lines for Kanban
1 parent 85f9436 commit 5e1ea26

File tree

2 files changed

+98
-1
lines changed

2 files changed

+98
-1
lines changed

MAUI/ImageEditor/liquid-glass-effect.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ 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="4 6 7 8 9 11" %}
67+
{% highlight c# tabtitle="MainPage.xaml.cs" hl_lines="21 23 24 25 28" %}
6868

6969
using Syncfusion.Maui.Core;
7070
using Syncfusion.Maui.ImageEditor;
Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
---
2+
layout: post
3+
title: Liquid Glass Effect for .NET MAUI Kanban control | Syncfusion®
4+
description: Learn how to enable and customize the Liquid Glass Effect in the Syncfusion® .NET MAUI Kanban Board (SfKanban) control.
5+
platform: MAUI
6+
control: Kanban (SfKanban)
7+
documentation: ug
8+
---
9+
10+
# Liquid Glass Effect
11+
12+
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 Kanban Board (SfKanban) control.
13+
14+
## Apply liquid glass effect
15+
16+
Follow these steps to enable and configure the Liquid Glass Effect in the Kanban control:
17+
18+
### Step 1: Enable the liquid glass effect on Kanban
19+
20+
Set the `EnableLiquidGlassEffect` property to `true` in the `SfKanban` control to apply the Liquid Glass Effect. When enabled, the effect is also applied to its dependent controls and provides responsive interaction for a smooth and engaging user experience.
21+
22+
### Step 2: Customize the background
23+
24+
To achieve a glass like background in Kanban, set the `Background` property to `Transparent` and use theme keys to style it, ensuring a consistent look and feel across your application.
25+
26+
The following code snippet demonstrates how to apply the Liquid Glass Effect to the `Kanban` control:
27+
28+
{% tabs %}
29+
{% highlight xaml tabtitle="MainPage.xaml" hl_lines="18" %}
30+
31+
<Grid>
32+
<Grid.Background>
33+
<LinearGradientBrush StartPoint="0,0"
34+
EndPoint="0,1">
35+
<GradientStop Color="#0F4C75"
36+
Offset="0.0"/>
37+
<GradientStop Color="#3282B8"
38+
Offset="0.5"/>
39+
<GradientStop Color="#1B262C"
40+
Offset="1.0"/>
41+
</LinearGradientBrush>
42+
</Grid.Background>
43+
44+
<kanban:SfKanban x:Name="kanban"
45+
Background="Transparent"
46+
AutoGenerateColumns="False"
47+
ItemsSource="{Binding Cards}"
48+
EnableLiquidGlassEffect="True">
49+
<kanban:SfKanban.Columns>
50+
<kanban:KanbanColumn Title="To Do"
51+
Categories="Open"/>
52+
<kanban:KanbanColumn Title="In Progress"
53+
Categories="In Progress"/>
54+
<kanban:KanbanColumn Title="Code Review"
55+
Categories="Code Review"/>
56+
<kanban:KanbanColumn Title="Done"
57+
Categories="Done"/>
58+
</kanban:SfKanban.Columns>
59+
<kanban:SfKanban.BindingContext>
60+
<local:KanbanViewModel/>
61+
</kanban:SfKanban.BindingContext>
62+
</kanban:SfKanban>
63+
</Grid>
64+
65+
{% endhighlight %}
66+
{% highlight c# tabtitle="MainPage.xaml.cs" hl_lines="19" %}
67+
68+
using Syncfusion.Maui.Core;
69+
using Syncfusion.Maui.ImageEditor;
70+
71+
var gradientBrush = new LinearGradientBrush
72+
{
73+
StartPoint = new Point(0, 0),
74+
EndPoint = new Point(0, 1),
75+
GradientStops = new GradientStopCollection
76+
{
77+
new GradientStop { Color = Color.FromArgb("#0F4C75"), Offset = 0.0f },
78+
new GradientStop { Color = Color.FromArgb("#3282B8"), Offset = 0.5f },
79+
new GradientStop { Color = Color.FromArgb("#1B262C"), Offset = 1.0f }
80+
}
81+
};
82+
83+
var grid = new Grid
84+
{
85+
Background = gradientBrush
86+
};
87+
88+
this.kanban.EnableLiquidGlassEffect = true;
89+
grid.Children.Add(this.kanban);
90+
this.Content = grid;
91+
92+
{% endhighlight %}
93+
{% endtabs %}
94+
95+
N>
96+
* Supported on `macOS 26 or higher` and `iOS 16 or higher`.
97+
* This feature is available only in `.NET 10.`

0 commit comments

Comments
 (0)