alexa
menu

MAUI

  • User Guide
  • Demos
  • Support
  • Forums
  • Download

    Show / Hide Table of Contents

    Class SfGlassEffectView

    Represents a view that overlays a platform-rendered Liquid Glass effect, adding translucent blur and depth to its content.

    Inheritance
    System.Object
    SfView
    SfContentView
    SfGlassEffectView
    Implements
    IDrawableLayout
    Microsoft.Maui.Graphics.IDrawable
    Microsoft.Maui.IAbsoluteLayout
    Microsoft.Maui.ILayout
    Microsoft.Maui.IView
    Microsoft.Maui.IElement
    Microsoft.Maui.ITransform
    Microsoft.Maui.IContainer
    System.Collections.Generic.IList<Microsoft.Maui.IView>
    System.Collections.Generic.ICollection<Microsoft.Maui.IView>
    System.Collections.Generic.IEnumerable<Microsoft.Maui.IView>
    System.Collections.IEnumerable
    Microsoft.Maui.ISafeAreaView
    Microsoft.Maui.IPadding
    Microsoft.Maui.ICrossPlatformLayout
    Microsoft.Maui.IVisualTreeElement
    Inherited Members
    SfContentView.Content
    SfContentView.ContentProperty
    SfContentView.OnContentChanged(Object, Object)
    SfView.ArrangeContent(Rect)
    SfView.ArrangeOverride(Rect)
    SfView.Children
    SfView.ClipToBounds
    SfView.GetSemanticsNodesCore(Double, Double)
    SfView.IDrawableLayout.DrawingOrder
    SfView.IDrawableLayout.InvalidateDrawable()
    SfView.MeasureContent(Double, Double)
    SfView.MeasureOverride(Double, Double)
    SfView.OnBindingContextChanged()
    SfView.OnDraw(ICanvas, RectF)
    SfView.OnHandlerChanged()
    SfView.Padding
    SfView.PaddingProperty
    Namespace: Syncfusion.Maui.Core
    Assembly: Syncfusion.Maui.Core.dll
    Syntax
    public class SfGlassEffectView : SfContentView, IDrawableLayout, IDrawable, IAbsoluteLayout, ILayout, IView, IElement, ITransform, IContainer, IList<IView>, ICollection<IView>, IEnumerable<IView>, IEnumerable, ISafeAreaView, IPadding, ICrossPlatformLayout, IVisualTreeElement, ISemanticsProvider
    Remarks

    To apply the effect to a control, wrap it inside SfGlassEffectView and set the control's background to transparent. This ensures the effect layer remains visible behind the control's content. This class is only recognized on the iOS/Mac Catalyst platforms; other platforms will ignore it and behave like a Content View.

    Constructors

    SfGlassEffectView()

    Declaration
    public SfGlassEffectView()

    Fields

    CornerRadiusProperty

    Identifies the CornerRadius bindable property.

    Declaration
    public static readonly BindableProperty CornerRadiusProperty
    Field Value
    Type Description
    Microsoft.Maui.Controls.BindableProperty

    The identifier for CornerRadius bindable property.

    EffectTypeProperty

    Identifies the EffectType bindable property.

    Declaration
    public static readonly BindableProperty EffectTypeProperty
    Field Value
    Type Description
    Microsoft.Maui.Controls.BindableProperty

    The identifier for EffectType bindable property.

    EnableShadowEffectProperty

    Identifies the EnableShadowEffect bindable property.

    Declaration
    public static readonly BindableProperty EnableShadowEffectProperty
    Field Value
    Type Description
    Microsoft.Maui.Controls.BindableProperty

    The identifier for EnableShadowEffect bindable property.

    Properties

    CornerRadius

    Gets or sets the corner radius for the Liquid Glass Effect view.

    Declaration
    public double CornerRadius { get; set; }
    Property Value
    Type Description
    System.Double

    The default value is 8.0.

    Remarks

    This property is recognized only on macOS and iOS platforms.

    EffectType

    Gets or sets the type of the Liquid Glass Effect.

    Declaration
    public LiquidGlassEffectType EffectType { get; set; }
    Property Value
    Type Description
    LiquidGlassEffectType

    The default value is Regular.

    Remarks

    This property is recognized only on macOS and iOS platforms.

    EnableShadowEffect

    Gets or sets the value that indicates whether to apply shadow effect for the Liquid Glass Effect view.

    Declaration
    public bool EnableShadowEffect { get; set; }
    Property Value
    Type Description
    System.Boolean

    The default value is false.

    Remarks

    This property is recognized only on macOS and iOS platforms.

    Implements

    IDrawableLayout
    Microsoft.Maui.Graphics.IDrawable
    Microsoft.Maui.IAbsoluteLayout
    Microsoft.Maui.ILayout
    Microsoft.Maui.IView
    Microsoft.Maui.IElement
    Microsoft.Maui.ITransform
    Microsoft.Maui.IContainer
    System.Collections.Generic.IList<>
    System.Collections.Generic.ICollection<>
    System.Collections.Generic.IEnumerable<>
    System.Collections.IEnumerable
    Microsoft.Maui.ISafeAreaView
    Microsoft.Maui.IPadding
    Microsoft.Maui.ICrossPlatformLayout
    Microsoft.Maui.IVisualTreeElement
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved