How to Apply Liquid Glass Effect in .NET MAUI SfAIAssistView?

8 Jul 20263 minutes to read

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 AI AssistView (SfAIAssistView) control.

Apply liquid glass effect

Follow these steps to enable and configure the Liquid Glass Effect in the AI AssistView control:

NOTE

  • Supported on macOS 26 or higher and iOS 26 or higher.
  • This feature is available only in .NET 10

Step 1: Wrap the control inside glass effect view

To apply the Liquid Glass Effect to the Syncfusion® .NET MAUI SfAIAssistView control, wrap the control inside the SfGlassEffectView class.

For more details, refer to the Liquid Glass Getting Started documentation.

Step 2: Enable the liquid glass effect on AI AssistView

Set the EnableLiquidGlassEffect property to true on SfAIAssistView 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.

Step 3: Customize the background

To achieve a glass-like background while maintaining the desired translucent appearance, set the Background property to Transparent. The background is then treated as a tint color, ensuring a consistent glass effect across the controls.

The following code snippet demonstrates how to apply the Liquid Glass Effect to the SfAIAssistView control:

<Grid Background="#FF54A3CD">
    <core:SfGlassEffectView EffectType="Regular"
                            CornerRadius="20">
        <assistView:SfAIAssistView x:Name="aiAssistView"
                                   Background="Transparent"
                                   EnableLiquidGlassEffect="True"/>
    </core:SfGlassEffectView>
</Grid>
using Syncfusion.Maui.AIAssistView;
using Syncfusion.Maui.Core;

public partial class MainPage : ContentPage
{
    public MainPage()
    {
        InitializeComponent();

        var grid = new Grid
        {
            Background = Color.FromArgb("#FF54A3CD")
        };

        var glassView = new SfGlassEffectView
        {
            CornerRadius = 20,
            EffectType = LiquidGlassEffectType.Regular
        };

        var aiAssistView = new SfAIAssistView
        {
            Background = Colors.Transparent,
            EnableLiquidGlassEffect = true
        };

        glassView.Content = aiAssistView;
        grid.Children.Add(glassView);

        this.Content = grid;
    }
}