Migrating from Xamarin SfBadgeView to .NET MAUI SfBadgeView

30 Dec 20221 minute to read

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

Namespaces

Xamarin SfBadgeView .NET MAUI SfBadgeView
Syncfusion.XForms.BadgeView Syncfusion.Maui.Core

Properties

Xamarin SfBadgeView .NET MAUI SfBadgeView Description

BadgeAnimation

Animation

Gets or sets the animation that should be used when the badge is shown.

BackgroundColor

Background

Gets or sets the background for the badge.

StrokeWidth

StrokeThickness

Gets or sets the stroke thickness for the badge.

BadgeIcon

Icon

Gets or sets the Icon to be displayed in the badge.

BadgePosition

Position

Gets or sets the position where the badge will be shown relative to the Content.

BadgeType

Type

Gets or sets the type of the badge.

Enums

Enum Xamarin SfBadgeView .NET MAUI SfBadgeView Description
BadgePosition BottomLeft,
BottomRight,
TopLeft,
TopRight
Bottom,
BottomLeft,
BottomRight,
Left,
Right,
Top,
TopLeft,
TopRight
Defines the position of the badge over the badge view control.

Classes

Xamarin SfBadgeView .NET MAUI SfBadgeView Description

BadgeSetting

BadgeSettings

Represents the badge settings class.