Migrating from Xamarin to .NET MAUI Text Input Layout

11 Aug 20261 minute to read

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

Namespaces

Xamarin Text Input Layout .NET MAUI Text Input Layout
Syncfusion.SfTextInputLayout.XForms Syncfusion.Maui.Core

Properties

Xamarin Text Input Layout .NET MAUI Text Input Layout Description

FocusedStrokeWidth

FocusedStrokeThickness

Gets or sets a value to customize the stroke thickness in a focused state. It is applicable for the bottom line and outline border when setting the container type as filled and outlined, respectively.

UnfocusedStrokeWidth

UnfocusedStrokeThickness

Gets or sets a value to customize the stroke thickness in an unfocused state. It is applicable for the bottom line and outline border when setting the container type as filled and outlined, respectively.

ContainerBackgroundColor

ContainerBackground

Gets or sets the background of the container.

InputView

Content

Gets or sets the value for input view to place behind the hint label.

FocusedColor


UnfocusedColor


ErrorColor

Stroke

Gets or sets the border color or base line color based on container and its states.
Xamarin LabelStyle .NET MAUI LabelStyle Description

Color

TextColor

Gets or sets the text color of the Text Input Layout controls label.

Known Issues

Manually input values don’t update the Stroke Value due to an issue at the framework level in .NET 8.0. This problem arises because the manual value doesn’t override an implicit style. However, you can resolve this by setting the Stroke Value using the Visual State Manager (VSM) through Style. Refer to this link for more details.