Migrating from Xamarin SfSwitch to .NET MAUI SfSwitch

20 May 20251 minute to read

To facilitate easier migration from Xamarin SfSwitch to .NET MAUI SfSwitch, most of the APIs from Xamarin SfSwitch have been retained in MAUI SfSwitch. However, to maintain API naming consistency in MAUI SfSwitch, some APIs have been renamed. The changes in APIs from Xamarin SfSwitch to MAUI SfSwitch are detailed as follows:

Namespaces

Xamarin SfSwitch .NET MAUI SfSwitch
Syncfusion.XForms.Buttons Syncfusion.Maui.Buttons

Properties

Xamarin SfSwitch .NET MAUI SfSwitch Description

TrackBorderWidth

TrackStrokeThickness

Gets or sets the track stroke thickness.

ThumbBorderWidth

ThumbStrokeThickness

Gets or sets the thumb stroke thickness.

TrackBorderColor

TrackStroke

Gets or sets the color of the track border.

ThumbBorderColor

ThumbStroke

Gets or sets the color of the thumb border.

TrackColor

TrackBackground

Gets or sets the color of the track.

ThumbColor

ThumbBackground

Gets or sets the color of the thumb.

Upcoming features

  • Vertical orientation support.
  • BusyIndicator and its customization.
  • Background image support for both Track and Thumb.
  • Gradient color customization for both Track and Thumb.