Migrate from Xamarin.Forms SfAccordion to .NET MAUI SfAccordion

28 Jun 20231 minute to read

To migrate easier from Xamarin.Forms SfAccordion to .NET MAUI SfAccordion, we kept most of the APIs from Xamarin SfAccordion in MAUI SfAccordion. However, to maintain the consistency of API naming in MAUI SfAccordion, we renamed some of the APIs. The APIs that have been changed in MAUI SfAccordion from Xamarin SfAccordion are detailed as follows.

Namespaces

Xamarin SfAccordion .NET MAUI SfAccordion
Syncfusion.XForms.Accordion Syncfusion.Maui.Accordion

Properties

NOTE

DynamicSizeMode property from the Xamarin SfAccordion is not moved to the MAUI SfAccordion.

Xamarin SfAccordion .NET MAUI SfAccordion Description

HeaderBackgroundColor

HeaderBackground

Gets or sets the background color of the header in the Accordion control.

IconColor

HeaderIconColor

Gets or sets the color of the header icon in the Accordion control.

Enums

Xamarin SfAccordion .NET MAUI SfAccordion Description

AutoScrollPosition

AccordionAutoScrollPosition

Specifies the auto-scroll positions for the Accordion control.

ExpandMode

AccordionExpandMode

Specifies the expand mode for the items in the Accordion control.