Migrating from Xamarin SfSwitch to .NET MAUI SfSwitch

19 Dec 20231 minute to read

To migrate easier from Xamarin SfSwitch to .NET MAUI SfSwitch, we kept most of the APIs from Xamarin SfSwitch in MAUI SfSwitch. However, to maintain the consistency of the API naming in MAUI SfSwitch, we renamed some of the APIs. The APIs changed in MAUI SfSwitch from Xamarin 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.