Skip to content

Revamp TextInputLayout UG contents and source in Hotfix #3083

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: hotfix/hotfix-v28.2.3
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion MAUI/TextInputLayout/Assistive-Labels.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ When the text input is not accepted, an error message will display instructions

{% highlight xaml %}

<inputLayout:SfTextInputLayout Hint="Email"
<inputLayout:SfTextInputLayout Hint="Email" ContainerType="Outlined"
HelperText="Enter your email address"
ErrorText="Invalid email"
HasError="true">
Expand All @@ -64,6 +64,7 @@ When the text input is not accepted, an error message will display instructions

var inputLayout = new SfTextInputLayout();
inputLayout.Hint = "Email";
inputLayout.ContainerType= ContainerType.Outlined;
inputLayout.HelperText = "Enter your email address";
inputLayout.ErrorText = "Invalid email";
inputLayout.HasError = true;
Expand All @@ -87,6 +88,7 @@ Character counter is used when you need to limit the characters. Character limit

<inputLayout:SfTextInputLayout Hint="Password"
CharMaxLength="8"
ContainerType="Outlined"
HelperText="Enter 5 to 8 characters">
<Entry />
</inputLayout:SfTextInputLayout>
Expand All @@ -99,6 +101,7 @@ Character counter is used when you need to limit the characters. Character limit
var inputLayout = new SfTextInputLayout();
inputLayout.Hint = "Password";
inputLayout.CharMaxLength = 8;
inputLayout.ContainerType= ContainerType.Outlined;
inputLayout.HelperText = "Enter 5 to 8 characters";
inputLayout.Content = new Entry();

Expand Down
8 changes: 7 additions & 1 deletion MAUI/TextInputLayout/Container-Type.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ The background of the input view will be filled with container color, and its st
{% highlight xaml %}

<inputLayout:SfTextInputLayout Hint="Name"
HelperText="Enter the name"
ContainerType="Filled">
<Entry Text="John" />
</inputLayout:SfTextInputLayout>
Expand All @@ -31,6 +32,7 @@ The background of the input view will be filled with container color, and its st

var inputLayout = new SfTextInputLayout();
inputLayout.Hint = "Name";
inputLayout.HelperText = "Enter the name";
inputLayout.ContainerType = ContainerType.Filled;
inputLayout.Content = new Entry() { Text = "John" };

Expand All @@ -49,6 +51,7 @@ When setting the [ContainerType](https://help.syncfusion.com/cr/maui/Syncfusion.
{% highlight xaml %}

<inputLayout:SfTextInputLayout Hint="Name"
HelperText="Enter the name"
ContainerType="Outlined">
<Entry Text="John" />
</inputLayout:SfTextInputLayout>
Expand All @@ -60,6 +63,7 @@ When setting the [ContainerType](https://help.syncfusion.com/cr/maui/Syncfusion.

var inputLayout = new SfTextInputLayout();
inputLayout.Hint = "Name";
inputLayout.HelperText = "Enter the name";
inputLayout.ContainerType = ContainerType.Outlined;
inputLayout.Content = new Entry() { Text = "John" };

Expand Down Expand Up @@ -142,7 +146,8 @@ When setting the [ContainerType](https://help.syncfusion.com/cr/maui/Syncfusion.

{% highlight xaml %}

<inputLayout:SfTextInputLayout Hint="Name"
<inputLayout:SfTextInputLayout Hint="Name"
HelperText="Enter the name"
ContainerType="None">
<Entry Text="John" />
</inputLayout:SfTextInputLayout>
Expand All @@ -154,6 +159,7 @@ When setting the [ContainerType](https://help.syncfusion.com/cr/maui/Syncfusion.

var inputLayout = new SfTextInputLayout();
inputLayout.Hint = "Name";
inputLayout.HelperText = "Enter the name";
inputLayout.ContainerType = ContainerType.None;
inputLayout.Content = new Entry() { Text = "John" };

Expand Down
6 changes: 2 additions & 4 deletions MAUI/TextInputLayout/Fixed-Hint-Position.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,7 @@ The hint label position of the input view will be set always at the top for the

<inputLayout:SfTextInputLayout Hint="Name"
IsHintAlwaysFloated="true"
ContainerType="Outlined"
HelperText="Enter your name">
ContainerType="Outlined">
<Entry />
</inputLayout:SfTextInputLayout>

Expand Down Expand Up @@ -86,8 +85,7 @@ The hint label position of the input view will be set always at the top for the

<inputLayout:SfTextInputLayout Hint="Name"
IsHintAlwaysFloated="true"
ContainerType="None"
HelperText="Enter your name">
ContainerType="None">
<Entry />
</inputLayout:SfTextInputLayout>

Expand Down
10 changes: 6 additions & 4 deletions MAUI/TextInputLayout/States-And-Colors.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
layout: post
title: States and Colors the .NET MAUI Text Input Layout control | Syncfusion®
title: States and Colors the .NET MAUI Text Input Layout | Syncfusion®
description: Learn here all about States and Colors support in the Syncfusion® .NET MAUI Text Input Layout (SfTextInputLayout) control and more.
platform: maui
control: SfTextInputLayout
Expand All @@ -25,9 +25,9 @@ I> Cursor color of the input view will be same as the `Accent` color of the appl

{% highlight xaml %}

<inputLayout:SfTextInputLayout Hint="User name"
<inputLayout:SfTextInputLayout Hint="Name"
Stroke="#00AFA0"
HelperText="Enter your name"
HelperText="Enter the name">
<VisualStateManager.VisualStateGroups>
<VisualStateGroupList>
<VisualStateGroup x:Name="CommonStates">
Expand Down Expand Up @@ -176,7 +176,7 @@ The color of the container is customized when the [ContainerType](https://help.s
<inputLayout:SfTextInputLayout Hint="Name"
Stroke="#0450C2"
ContainerType="Outlined"
ContainerBackground="#E6EEF9">`
ContainerBackground="#E6EEF9">
<Entry />
</inputLayout:SfTextInputLayout>

Expand Down Expand Up @@ -208,6 +208,7 @@ You can customize the text color of the `hint` label, `helper` label, and `error

<inputLayout:SfTextInputLayout Hint="Name"
ContainerType="Outlined"
Stroke="Red"
HelperText="Enter your name"
ErrorText="Invalid text">

Expand All @@ -232,6 +233,7 @@ You can customize the text color of the `hint` label, `helper` label, and `error
SfTextInputLayout inputLayout = new SfTextInputLayout();
inputLayout.Hint = "Name";
inputLayout.ContainerType = ContainerType.Outlined;
inputLayout.Stroke = Colors.Red;
inputLayout.HelperText = "Enter your name";
inputLayout.ErrorText = "Invalid text";
inputLayout.Content = new Entry();
Expand Down
13 changes: 6 additions & 7 deletions MAUI/TextInputLayout/Supported-input-views.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ To enter a single line text input, add [`Entry`](https://learn.microsoft.com/en-
{% highlight xaml %}

<inputLayout:SfTextInputLayout Hint="Name"
HelperText="Enter your name"
HelperText="Enter the name"
ContainerType="Outlined">
<Entry />
</inputLayout:SfTextInputLayout>
Expand Down Expand Up @@ -353,16 +353,17 @@ To initialize the [Picker](https://learn.microsoft.com/en-us/dotnet/maui/user-in

<inputLayout:SfTextInputLayout Hint="Fruit"
HelperText="Select a fruit"
ContainerBackground="Transparent"
ContainerType="Outlined" >
<picker:Picker SelectedItem="Apple">
<Picker SelectedItem="Apple">
<Picker.ItemsSource>
<x:Array Type="{x:Type x:String}">
<x:String>Apple</x:String>
<x:String>Orange</x:String>
<x:String>Strawberry</x:String>
</x:Array>
</Picker.ItemsSource>
</picker:Picker>
</Picker>
</inputLayout:SfTextInputLayout>

{% endhighlight %}
Expand Down Expand Up @@ -396,7 +397,7 @@ To initialize the [TimePicker](https://learn.microsoft.com/en-us/dotnet/maui/use
<inputLayout:SfTextInputLayout Hint="Time"
HelperText="Select a start time"
ContainerType="Outlined" >
<timepicker:TimePicker/>
<TimePicker/>
</inputLayout:SfTextInputLayout>

{% endhighlight %}
Expand All @@ -406,7 +407,6 @@ var inputLayout = new SfTextInputLayout();
inputLayout.Hint = "Time";
inputLayout.HelperText = "Select a start time";
inputLayout.ContainerType = ContainerType.Outlined;
inputLayout.ContainerBackground = Colors.Transparent;
inputLayout.Content = new TimePicker();

{% endhighlight %}
Expand All @@ -426,7 +426,7 @@ To initialize the [DatePicker]( https://learn.microsoft.com/en-us/dotnet/maui/us
<inputLayout:SfTextInputLayout Hint="Date of Birth"
HelperText="Select birth date"
ContainerType="Outlined" >
<datepicker:DatePicker/>
<DatePicker/>
</inputLayout:SfTextInputLayout>

{% endhighlight %}
Expand All @@ -436,7 +436,6 @@ var inputLayout = new SfTextInputLayout();
inputLayout.Hint = "Date of Birth";
inputLayout.HelperText = "Select birth date";
inputLayout.ContainerType = ContainerType.Outlined;
inputLayout.ContainerBackground = Colors.Transparent;
inputLayout.Content = new DatePicker();

{% endhighlight %}
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified MAUI/TextInputLayout/images/AssistiveLabels/ReserveSpace.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified MAUI/TextInputLayout/images/ContainerType/CornerRadius.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified MAUI/TextInputLayout/images/ContainerType/Outlined.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified MAUI/TextInputLayout/images/ContainerType/padingg.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified MAUI/TextInputLayout/images/CustomFont/ErrorLabelStyle.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified MAUI/TextInputLayout/images/CustomFont/HelperLabelStyle.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified MAUI/TextInputLayout/images/CustomFont/HintLabelStyle.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified MAUI/TextInputLayout/images/SupportedInputViews/Autocomplete.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified MAUI/TextInputLayout/images/SupportedInputViews/ComboBox.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified MAUI/TextInputLayout/images/SupportedInputViews/DatePicker.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified MAUI/TextInputLayout/images/SupportedInputViews/Editor.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified MAUI/TextInputLayout/images/SupportedInputViews/TimePicker.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.