Migrating from Xamarin Tab View to .NET MAUI Tab View

18 Nov 20181 minute to read

To facilitate easier migration from Xamarin Tab View to .NET MAUI Tab View, we have retained most of the APIs from Xamarin Tab View in .NET MAUI Tab View. However, to maintain API naming consistency, some APIs have been renamed. The following details the changes in APIs from Xamarin Tab View to .NET MAUI Tab View.

Namespaces

Xamarin Tab View .NET MAUI Tab View
Syncfusion.XForms.TabView Syncfusion.Maui.TabView

Properties

Xamarin Tab View .NET MAUI Tab View 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.

HeaderContent

HeaderItemTemplate

Gets or sets the template that is used to display the header.

Enums

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

Classes

Xamarin Tab View .NET MAUI Tab View 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.