RadSkeleton
Represents a skeleton loading indicator control that displays placeholder content while actual content is being loaded. Provides built-in skeleton types, customizable templates and animation for creating engaging loading experiences.
Definition
Namespace:Telerik.Maui.Controls
Assembly:Telerik.Maui.Controls.dll
Syntax:
public class RadSkeleton : RadBorderContentView, IRadContentView, IContentView, IView, IElement, ITransform, IPadding, ICrossPlatformLayout
Inheritance: objectRadContentViewRadCompositeContentViewRadBorderContentViewRadSkeleton
Implements:
Inherited Members
Constructors
public RadSkeleton()
Fields
AnimatedLoadingColorProperty
BindableProperty
Identifies the AnimatedLoadingColor bindable property.
public static readonly BindableProperty AnimatedLoadingColorProperty
IsLoadingProperty
BindableProperty
Identifies the IsLoading bindable property.
public static readonly BindableProperty IsLoadingProperty
LoadingViewColorProperty
BindableProperty
Identifies the LoadingViewColor bindable property.
public static readonly BindableProperty LoadingViewColorProperty
LoadingViewDrawableProperty
BindableProperty
Identifies the LoadingViewDrawable bindable property.
public static readonly BindableProperty LoadingViewDrawableProperty
LoadingViewMinimumHeightProperty
BindableProperty
Identifies the LoadingViewMinimumHeight bindable property.
public static readonly BindableProperty LoadingViewMinimumHeightProperty
LoadingViewMinimumWidthProperty
BindableProperty
Identifies the LoadingViewMinimumWidth bindable property.
public static readonly BindableProperty LoadingViewMinimumWidthProperty
LoadingViewTemplateProperty
BindableProperty
Identifies the LoadingViewTemplate bindable property.
public static readonly BindableProperty LoadingViewTemplateProperty
RepeatCountProperty
BindableProperty
Identifies the RepeatCount bindable property.
public static readonly BindableProperty RepeatCountProperty
RepeatSpacingProperty
BindableProperty
Identifies the RepeatSpacing bindable property.
public static readonly BindableProperty RepeatSpacingProperty
SkeletonAnimationTypeProperty
BindableProperty
Identifies the SkeletonAnimationType bindable property.
public static readonly BindableProperty SkeletonAnimationTypeProperty
SkeletonTypeProperty
BindableProperty
Identifies the SkeletonType bindable property.
public static readonly BindableProperty SkeletonTypeProperty
Properties
AnimatedLoadingColor
Color
Gets the animated color of the loading view.
public Color AnimatedLoadingColor { get; }
Gets or sets a value indicating whether the content is currently loading. When set to true, the skeleton loading view is displayed; when false, the actual content is shown.
public bool IsLoading { get; set; }
true if content is loading; otherwise, false. The default value is true.
LoadingViewColor
Color
Gets or sets the base color of the skeleton loading view.
public Color LoadingViewColor { get; set; }
The color of the placeholder elements. The default value is black (#000000).
LoadingViewDrawable
IDrawable
Gets or sets the custom drawable object used to render the loading view.
public IDrawable LoadingViewDrawable { get; set; }
An IDrawable instance that defines how the loading view is drawn.
Gets or sets the minimum height of the loading view.
public double LoadingViewMinimumHeight { get; set; }
Gets or sets the minimum width of the loading view.
public double LoadingViewMinimumWidth { get; set; }
LoadingViewTemplate
DataTemplate
Gets or sets the custom data template for the loading view. When set, this template overrides the built-in skeleton types specified by SkeletonType.
public DataTemplate LoadingViewTemplate { get; set; }
A DataTemplate that defines the custom loading view layout, or null to use the built-in skeleton type.
The template allows you to create fully customized loading placeholders that match your specific UI requirements. You can use any MAUI layout or view within the template. The skeleton animation specified by SkeletonAnimationType will still be applied to the custom template.
Gets or sets the number of repetitions of the loading view.
public int RepeatCount { get; set; }
Gets or sets the spacing between the repeated loading views.
public double RepeatSpacing { get; set; }
Gets or sets the animation type for the skeleton loading view.
public SkeletonAnimationType SkeletonAnimationType { get; set; }
A SkeletonAnimationType value representing the animation style. The default value is Pulse.
Gets or sets the type of built-in skeleton template to display during loading. This property is only used when LoadingViewTemplate is null.
public SkeletonType SkeletonType { get; set; }
A SkeletonType value representing the skeleton template. The default value is PersonaCircle.
The skeleton type determines the visual layout of the loading placeholder:
- Article: Displays a layout suitable for article content with text lines.
- Text: Shows a simple text skeleton with horizontal lines.
- Image: Displays a skeleton for image-based content.
- Card: Shows a card-style skeleton layout.
- PersonaCircle: Displays a persona skeleton with a circular avatar.
- PersonaSquare: Displays a persona skeleton with a square avatar.
- ContentFeed: Shows a content feed skeleton layout.
- Video: Displays a skeleton suitable for video content.
Methods
protected override void OnApplyTemplate()
Overrides:
Called when the handler changes.
protected override void OnHandlerChanged()
Overrides: