Migrating from Xamarin SfChips to .NET MAUI SfChips

23 Jun 20231 minute to read

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

Namespaces

Xamarin SfChips .NET MAUI SfChips
Syncfusion.Xamarin.Buttons Syncfusion.Maui.Core

Properties

Xamarin SfChips .NET MAUI SfChips Description

BorderThickness

StrokeThickness

Gets or sets the stroke thickness.

BorderColor

Stroke

Gets or sets the color of the border.

BackgroundImage

BackgroundImageSource

Gets or sets the background image in chip.

ImageWidth

ImageSize

Gets or sets the image size in chip.

ImageSource


Image

ImageSource

Gets or sets the imagesource in chip.

ChipImageWidth

ChipImageSize

Gets or sets chipgroup image size.

Type

ChipType

Gets or sets the chip type in chipgroup.

SelectedItems


SelectedItem

SelectedItem

Gets or sets the selected item for chip type filter and choice in chip group.

ChipBorderColor

ChipStroke

Gets or sets the border color in chip group.

ChipBorderWidth

ChipStrokeThickness

Gets or sets the stroke thickness in chip group.

ChipBackgroundColor

ChipBackground

Gets or sets the background color in chip group.

Events

Event Name Xamarin SfChips .NET MAUI SfChips Description

ItemRemoved

ItemRemovedEventArgs


SelectionChangedEventArgs


Raises when an item is removed from chipgroup. Returns the currently removed item.