Class
RadAccordion

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:

cs-api-definition
public class RadAccordion : RadLayout

Inheritance: objectRadLayoutRadAccordion

Inherited Members RadLayout.CreateLayoutManager()

Constructors

RadAccordion()

Initializes a new instance of the RadAccordion class.

Declaration

cs-api-definition
public RadAccordion()

Fields

AnimationDurationProperty

Identifies theAnimationDuration property.

Declaration

cs-api-definition
public static readonly BindableProperty AnimationDurationProperty

Field Value

BindableProperty

AnimationEasingProperty

Identifies theAnimationEasing property.

Declaration

cs-api-definition
public static readonly BindableProperty AnimationEasingProperty

Field Value

BindableProperty

CanCollapseAllItemsProperty

Identifies theCanCollapseAllItems property.

Declaration

cs-api-definition
public static readonly BindableProperty CanCollapseAllItemsProperty

Field Value

BindableProperty

CanExpandMultipleItemsProperty

Identifies the CanExpandMultipleItems property.

Declaration

cs-api-definition
public static readonly BindableProperty CanExpandMultipleItemsProperty

Field Value

BindableProperty

IsAnimationEnabledProperty

Identifies theIsAnimationEnabled property.

Declaration

cs-api-definition
public static readonly BindableProperty IsAnimationEnabledProperty

Field Value

BindableProperty

SpacingProperty

Identifies theSpacing property.

Declaration

cs-api-definition
public static readonly BindableProperty SpacingProperty

Field Value

BindableProperty

Properties

AnimationDuration

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

Declaration

cs-api-definition
public int AnimationDuration { get; set; }

Property Value

int

AnimationEasing

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

Declaration

cs-api-definition
[TypeConverter(typeof(EasingTypeConverter))]
public Easing AnimationEasing { get; set; }

Property Value

Easing

CanCollapseAllItems

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

Declaration

cs-api-definition
public bool CanCollapseAllItems { get; set; }

Property Value

bool

CanExpandMultipleItems

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

Declaration

cs-api-definition
public bool CanExpandMultipleItems { get; set; }

Property Value

bool

IsAnimationEnabled

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

Declaration

cs-api-definition
public bool IsAnimationEnabled { get; set; }

Property Value

bool

Items

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

Declaration

cs-api-definition
public IList<AccordionItem> Items { get; }

Property Value

IList<AccordionItem>

Spacing

Gets or sets the space between the items.

Declaration

cs-api-definition
public double Spacing { get; set; }

Property Value

double

Methods

OnChildAdded(Element)

Declaration

cs-api-definition
protected override void OnChildAdded(Element child)

Parameters

child

Element

OnChildRemoved(Element, int)

Declaration

cs-api-definition
protected override void OnChildRemoved(Element child, int oldLogicalIndex)

Parameters

child

Element

oldLogicalIndex

int