New to Telerik UI for .NET MAUIStart a free 30-day trial

Represents an accordion control that allows expanding and collapsing of items (AccordionItem). The accordion provides a space-efficient way to display content where users can expand and collapse sections as needed.

Definition

Namespace:Telerik.Maui.Controls

Assembly:Telerik.Maui.Controls.dll

Syntax:

C#
public class RadAccordion : RadLayout

Inheritance: objectRadLayoutRadAccordion

Inherited Members RadLayout.CreateLayoutManager()

Constructors

Initializes a new instance of the RadAccordion class.

C#
public RadAccordion()

Fields

Identifies theAnimationDuration property.

C#
public static readonly BindableProperty AnimationDurationProperty

AnimationEasingProperty

BindableProperty

Identifies theAnimationEasing property.

C#
public static readonly BindableProperty AnimationEasingProperty

Identifies theCanCollapseAllItems property.

C#
public static readonly BindableProperty CanCollapseAllItemsProperty

Identifies the CanExpandMultipleItems property.

C#
public static readonly BindableProperty CanExpandMultipleItemsProperty

Identifies theIsAnimationEnabled property.

C#
public static readonly BindableProperty IsAnimationEnabledProperty

SpacingProperty

BindableProperty

Identifies theSpacing property.

C#
public static readonly BindableProperty SpacingProperty

Properties

Gets or sets the duration of the expand/collapse animation.

C#
public int AnimationDuration { get; set; }

Gets or sets the easing of the expand/collapse animation.

C#
[TypeConverter(typeof(EasingTypeConverter))]
public Easing AnimationEasing { get; set; }

Gets or sets a value indicating whether all items can be collapsed.

C#
public bool CanCollapseAllItems { get; set; }

Gets or sets a value indicating whether more than one item can be expanded.

C#
public bool CanExpandMultipleItems { get; set; }

Gets or sets a value indicating whether the expand/collapse animation is enabled.

C#
public bool IsAnimationEnabled { get; set; }

Gets the collection of AccordionItems, describing the individual items of the control.

C#
public IList<AccordionItem> Items { get; }

Gets or sets the space between the items.

C#
public double Spacing { get; set; }

Methods

C#
protected override void OnChildAdded(Element child)
Parameters:childElement
C#
protected override void OnChildRemoved(Element child, int oldLogicalIndex)
Parameters:childElementoldLogicalIndexint