Migrate from Xamarin.Forms SfExpander to .NET MAUI SfExpander

26 Jun 20231 minute to read

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

Namespaces

Xamarin SfExpander .NET MAUI SfExpander
Syncfusion.XForms.Expander Syncfusion.Maui.Expander

Properties

NOTE

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

Xamarin SfExpander .NET MAUI SfExpander Description

HeaderBackgroundColor

HeaderBackground

Gets or sets the background color of the header area in the Expander control.

IconColor

HeaderIconColor

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

Enums

Xamarin SfExpander .NET MAUI SfExpander Description

IconPosition

ExpanderIconPosition

Specifies the position of the expander icon within an Expander control.

AnimationEasing

ExpanderAnimationEasing

Specifies the easing function for the animation of Expander control.