ClassRadSkeleton
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
RadSkeleton()
Initializes a new instance of the RadSkeleton class.
Declaration
public RadSkeleton()
Fields
AnimatedLoadingColorProperty
Identifies the AnimatedLoadingColor bindable property.
Declaration
public static readonly BindableProperty AnimatedLoadingColorProperty
Field Value
BindableProperty
IsLoadingProperty
Identifies the IsLoading bindable property.
Declaration
public static readonly BindableProperty IsLoadingProperty
Field Value
BindableProperty
LoadingViewColorProperty
Identifies the LoadingViewColor bindable property.
Declaration
public static readonly BindableProperty LoadingViewColorProperty
Field Value
BindableProperty
LoadingViewDrawableProperty
Identifies the LoadingViewDrawable bindable property.
Declaration
public static readonly BindableProperty LoadingViewDrawableProperty
Field Value
BindableProperty
LoadingViewMinimumHeightProperty
Identifies the LoadingViewMinimumHeight bindable property.
Declaration
public static readonly BindableProperty LoadingViewMinimumHeightProperty
Field Value
BindableProperty
LoadingViewMinimumWidthProperty
Identifies the LoadingViewMinimumWidth bindable property.
Declaration
public static readonly BindableProperty LoadingViewMinimumWidthProperty
Field Value
BindableProperty
LoadingViewTemplateProperty
Identifies the LoadingViewTemplate bindable property.
Declaration
public static readonly BindableProperty LoadingViewTemplateProperty
Field Value
BindableProperty
RepeatCountProperty
Identifies the RepeatCount bindable property.
Declaration
public static readonly BindableProperty RepeatCountProperty
Field Value
BindableProperty
RepeatSpacingProperty
Identifies the RepeatSpacing bindable property.
Declaration
public static readonly BindableProperty RepeatSpacingProperty
Field Value
BindableProperty
SkeletonAnimationTypeProperty
Identifies the SkeletonAnimationType bindable property.
Declaration
public static readonly BindableProperty SkeletonAnimationTypeProperty
Field Value
BindableProperty
SkeletonTypeProperty
Identifies the SkeletonType bindable property.
Declaration
public static readonly BindableProperty SkeletonTypeProperty
Field Value
BindableProperty
Properties
AnimatedLoadingColor
Gets the animated color of the loading view.
Declaration
public Color AnimatedLoadingColor { get; }
Property Value
Color
IsLoading
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.
Declaration
public bool IsLoading { get; set; }
Property Value
true if content is loading; otherwise, false. The default value is true.
LoadingViewColor
Gets or sets the base color of the skeleton loading view.
Declaration
public Color LoadingViewColor { get; set; }
Property Value
Color
The color of the placeholder elements. The default value is black (#000000).
LoadingViewDrawable
Gets or sets the custom drawable object used to render the loading view.
Declaration
public IDrawable LoadingViewDrawable { get; set; }
Property Value
IDrawable
An IDrawable instance that defines how the loading view is drawn.
LoadingViewMinimumHeight
Gets or sets the minimum height of the loading view.
Declaration
public double LoadingViewMinimumHeight { get; set; }
Property Value
LoadingViewMinimumWidth
Gets or sets the minimum width of the loading view.
Declaration
public double LoadingViewMinimumWidth { get; set; }
Property Value
LoadingViewTemplate
Gets or sets the custom data template for the loading view. When set, this template overrides the built-in skeleton types specified by SkeletonType.
Declaration
public DataTemplate LoadingViewTemplate { get; set; }
Property Value
DataTemplate
A DataTemplate that defines the custom loading view layout, or null to use the built-in skeleton type.
Remarks
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.
RepeatCount
Gets or sets the number of repetitions of the loading view.
RepeatSpacing
Gets or sets the spacing between the repeated loading views.
SkeletonAnimationType
Gets or sets the animation type for the skeleton loading view.
Declaration
public SkeletonAnimationType SkeletonAnimationType { get; set; }
Property Value
A SkeletonAnimationType value representing the animation style. The default value is Pulse.
Remarks
Available animation types:
SkeletonType
Gets or sets the type of built-in skeleton template to display during loading. This property is only used when LoadingViewTemplate is null.
Declaration
public SkeletonType SkeletonType { get; set; }
Property Value
A SkeletonType value representing the skeleton template. The default value is PersonaCircle.
Remarks
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
OnApplyTemplate()
Declaration
protected override void OnApplyTemplate()
Overrides