alexa
Syncfusion
menu Syncfusion

MAUI

  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Search Results for

    Show / Hide Table of Contents

    Class ShimmerView

    Initializes a new instance of the class. Represents a view used to achieve shimmer custom view.

    Inheritance
    object
    SfView
    ShimmerView
    Implements
    IDrawableLayout
    IDrawable
    IAbsoluteLayout
    ILayout
    IView
    IElement
    ITransform
    IContainer
    IList<IView>
    ICollection<IView>
    IEnumerable<IView>
    IEnumerable
    ISafeAreaView
    IPadding
    ICrossPlatformLayout
    IVisualTreeElement
    Inherited Members
    SfView.ArrangeContent(Rect)
    SfView.ArrangeOverride(Rect)
    SfView.Children
    SfView.ClipToBounds
    SfView.GetSemanticsNodesCore(double, double)
    SfView.MeasureContent(double, double)
    SfView.MeasureOverride(double, double)
    SfView.OnBindingContextChanged()
    SfView.OnDraw(ICanvas, RectF)
    SfView.OnHandlerChanged()
    SfView.Padding
    SfView.PaddingProperty
    Namespace: Syncfusion.Maui.Shimmer
    Assembly: Syncfusion.Maui.Core.dll
    Syntax
    public class ShimmerView : SfView, IDrawableLayout, IDrawable, IAbsoluteLayout, ILayout, IView, IElement, ITransform, IContainer, IList<IView>, ICollection<IView>, IEnumerable<IView>, IEnumerable, ISafeAreaView, IPadding, ICrossPlatformLayout, IVisualTreeElement

    Constructors

    ShimmerView()

    Declaration
    public ShimmerView()

    Fields

    ShapeTypeProperty

    Identifies the ShapeType bindable property

    Declaration
    public static readonly BindableProperty ShapeTypeProperty
    Field Value
    Type Description
    BindableProperty

    The identifier for ShapeType bindable property.

    Properties

    ShapeType

    Gets or sets the shape for the shimmer view.

    Declaration
    public ShimmerShapeType ShapeType { get; set; }
    Property Value
    Type Description
    ShimmerShapeType

    The default value of ShapeType is Rectangle.

    Examples

    The following code demonstrates, how to use the ShapeType property in the Shimmer.

    • XAML
    • C#
    <shimmer:SfShimmer x:Name="Shimmer" 
                       Type="Custom">
        <shimmer:SfShimmer.CustomView>
            <Grid HeightRequest="50" WidthRequest="200">
                <Grid.RowDefinitions>
                    <RowDefinition/>
                    <RowDefinition/>
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="0.25*"/>
                    <ColumnDefinition Width="0.75*"/>
                </Grid.ColumnDefinitions>
    
                <shimmer:ShimmerView ShapeType="Circle" Grid.RowSpan="2"/>
                <shimmer:ShimmerView Grid.Column="1" Margin="5"/>
                <shimmer:ShimmerView ShapeType="RoundedRectangle" Grid.Row="1" Grid.Column="1" Margin="5"/>
            </Grid>
        </shimmer:SfShimmer.CustomView>
    </shimmer:SfShimmer>
    Grid grid = new Grid
    {
        HeightRequest = 50, 
        WidthRequest = 200,
        RowDefinitions =
        {
            new RowDefinition(),
            new RowDefinition(),
        },
        ColumnDefinitions =
        {
            new ColumnDefinition { Width = new GridLength(0.25, GridUnitType.Star) },
            new ColumnDefinition { Width = new GridLength(0.75, GridUnitType.Star) }
        }
    };
    
    ShimmerView circleView = new ShimmerView() { ShapeType = ShimmerShapeType.Circle};
    grid.SetRowSpan(circleView, 2);
    grid.Add(circleView);
    grid.Add(new ShimmerView { Margin = 5 }, 1);
    grid.Add(new ShimmerView { Margin = 5, ShapeType = ShimmerShapeType.RoundedRectangle }, 1, 1);
    Shimmer.Type = ShimmerType.Custom;
    Shimmer.CustomView = grid;

    Implements

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