Class ShimmerView
Initializes a new instance of the class. Represents a view used to achieve shimmer custom view.
Implements
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
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, ISemanticsProvider
Constructors
ShimmerView()
Declaration
public ShimmerView()
Fields
ShapeTypeProperty
Identifies the ShapeType bindable property.
Declaration
public static readonly BindableProperty ShapeTypeProperty
Field Value
Type | Description |
---|---|
Microsoft.Maui.Controls.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 |
Examples
The following code demonstrates, how to use the ShapeType property in the Shimmer.
<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>
Implements
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