Class SfGlassEffectView
Represents a view that overlays a platform-rendered Liquid Glass effect, adding translucent blur and depth to its content.
Implements
Inherited Members
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.