Migrating from Xamarin SfTabView to .NET MAUI SfTabView

16 May 20221 minute to read

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

Namespaces

Xamarin SfTabView .NET MAUI SfTabView
Syncfusion.XForms.TabView Syncfusion.Maui.TabView

Properties

Xamarin SfTabView .NET MAUI SfTabView Description

Color

IndicatorBackground

Gets or sets a brush that describes the selection indicator's background.

Position

IndicatorPlacement

Gets or sets the placement of the selection indicator.

TabHeaderBackgroundColor

TabBarBackground

Gets or sets a brush that describes the tab header's background.

TabHeight

TabBarHeight

Gets or sets the height of the tab header.

TabHeaderPosition

TabBarPlacement

Gets or sets whether the tab header should be at the bottom or at the top of the tab content.

TitleFontAttributes

FontAttributes

Gets or sets the value that defines the font attributes of the tab header.

TitleFontFamily

FontFamily

Gets or sets the value that defines the font family of the header.

TitleFontSize

FontSize

Gets or sets the value that defines the font size of the tab header.

TitleFontColor

TextColor

Gets or sets the value that defines the text color of the tab header.

Title

Header

Gets or sets the text for the tab header.

Enums

Enum Xamarin SfTabView .NET MAUI SfTabView Description
TabWidthMode BasedOnText,
Default
Default,
SizeToContent
Defines the width of each tab.

Classes

Xamarin SfTabView .NET MAUI SfTabView Description

TabHeaderPosition

TabBarPlacement

Describes the possible values for the position of header layout in SfTabView control.

SelectionIndicatorPosition

TabIndicatorPlacement

Describes the possible values for selection indicator placement.

SelectionChangedEventArgs

TabSelectionChangedEventArgs

This class serves as an event data for the SelectionChanged event.

Upcoming features

  • Center button support.
  • Drop-down mode.
  • Visible header count.