Skip to content

Commit f226fe3

Browse files
Merge pull request #255 from syncfusion-content/ug_update
Updated the code and content for OtpInput and TabView.
2 parents e110bd8 + 8ba5793 commit f226fe3

File tree

6 files changed

+45
-75
lines changed

6 files changed

+45
-75
lines changed

maui-toolkit/Otp-Input/Input-Types.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ documentation: ug
1111

1212
## Types
1313

14-
This section explains the the various types of OTP (One-Time Password) input component, explaining their default behaviors and appropriate use cases.
14+
This section explains the various types of OTP (One-Time Password) input component, explaining their default behaviors and appropriate use cases.
1515

1616
### Number type
1717

maui-toolkit/Otp-Input/OtpInput-Customization.md

Lines changed: 2 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -122,28 +122,6 @@ SfOtpInput otpInput = new SfOtpInput()
122122

123123
![InputLength Image for OTP Input](images/length.png)
124124

125-
## Disable inputs
126-
127-
You can disable the OTP Input component by using the `IsEnabled` property. By default, this property's value is set to `True.`
128-
129-
{% tabs %}
130-
{% highlight xaml %}
131-
132-
<otpInput:SfOtpInput IsEnabled="False" />
133-
134-
{% endhighlight %}
135-
{% highlight C# %}
136-
137-
SfOtpInput otpInput = new SfOtpInput()
138-
{
139-
IsEnabled = false
140-
};
141-
142-
{% endhighlight %}
143-
{% endtabs %}
144-
145-
![Disabled Image for OTP Input](images/isenabled.png)
146-
147125
## Input background
148126

149127
You can set the `InputBackground` property to any color to customize the appearance of the input fields. The `InputBackground` property applies only when `StylingMode` is set to `Filled.`
@@ -218,15 +196,15 @@ You can set the `MaskCharacter` property to any character to define how the mask
218196
{% tabs %}
219197
{% highlight xaml %}
220198

221-
<otpInput:SfOtpInput Type="Password" MaskCharacter="*" />
199+
<otpInput:SfOtpInput Type="Password" MaskCharacter="#" />
222200

223201
{% endhighlight %}
224202
{% highlight C# %}
225203

226204
SfOtpInput otpInput = new SfOtpInput()
227205
{
228206
Type = OtpInputType.Password,
229-
MaskCharacter = '*'
207+
MaskCharacter = '#'
230208
};
231209

232210
{% endhighlight %}

maui-toolkit/TabView/CenterButton-Customization.md

Lines changed: 21 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ documentation: ug
99

1010
# Center Button Customization in .NET MAUI Tab View (SfTabView)
1111

12-
This section explains how to enable and customize The center button in .NET MAUI [SfTabView.](https://help.syncfusion.com/cr/maui-toolkit/Syncfusion.Maui.Toolkit.TabView.SfTabView.html)
12+
This section explains how to enable and customize the center button in .NET MAUI [SfTabView.](https://help.syncfusion.com/cr/maui-toolkit/Syncfusion.Maui.Toolkit.TabView.SfTabView.html)
1313

1414
## Enable the center button
1515

16-
You can enable the center button in Tab View by setting the `IsCenterButtonEnable` property to `True.`
16+
You can enable the center button in Tab View by setting the `IsCenterButtonEnabled` property to `True.`
1717

1818
{% tabs %}
1919

@@ -38,27 +38,22 @@ public MainPage()
3838
{% endtabs %}
3939

4040
## Customize the center button
41-
You can customize the center button using the properties of `CenterButtonSetting.` The following properties are used to customize the view of the center button `Background,` `Stroke,` `StrokeThickness,` `CornerRadius,` `TextColor,` `Height,` `Title,` `FontAttributes,` `FontFamily,` `FontSize,` `Width,` `ImageSource,` `ImageSize,` and `DisplayMode.`
41+
42+
You can customize the center button using the properties of `CenterButtonSettings`. The following properties are used to customize the view of center button `Background`, `Stroke`,`StrokeThickness`, `CornerRadius`, `TextColor`, `Height`, `Title`, `FontAttributes`, `FontFamily`, `FontSize`, `Width`, `ImageSource`, `ImageSize`, and `DisplayMode`.
4243

4344
{% tabs %}
4445

4546
{% highlight xaml %}
4647

4748
<tabView:SfTabView.CenterButtonSettings>
48-
<tabView:CenterButtonSettings Title="Home"
49-
Height="70"
50-
Width="80"
51-
Background="White"
52-
Stroke="HotPink"
53-
StrokeThickness="3"
54-
CornerRadius="10"
55-
TextColor="Green"
56-
ImageSource="image.png"
57-
ImageSize="24"
58-
DisplayMode="ImageWithText"
59-
FontFamily="SevillanaRegular"
60-
FontAttributes="Bold"
61-
FontSize="16" />
49+
<tabView:CenterButtonSettings Height="45"
50+
Width="45"
51+
CornerRadius="50"
52+
Background="#6750A4"
53+
ImageSize="25"
54+
DisplayMode="Image"
55+
ImageSource="image.png">
56+
</tabView:CenterButtonSettings>
6257
</tabView:SfTabView.CenterButtonSettings>
6358

6459
{% endhighlight %}
@@ -71,16 +66,13 @@ public MainPage()
7166
SfTabView tabView = new SfTabView();
7267
CenterButtonSettings centerButtonSettings = new CenterButtonSettings()
7368
{
74-
Height = 80,
75-
Width = 100,
76-
Title = "Center Button",
77-
FontAttributes = FontAttributes.Bold,
78-
TextColor = Colors.Green,
79-
DisplayMode = CenterButtonDisplayMode.ImageWithText,
80-
ImageSource = "Home.png",
81-
ImageSize = 24,
82-
FontFamily = "SevillanaRegular",
83-
CornerRadius = new CornerRadius(10),
69+
Height = 45,
70+
Width = 45,
71+
DisplayMode = CenterButtonDisplayMode.Image,
72+
ImageSize = 25,
73+
Background = Color.FromArgb("#6750A4");
74+
CornerRadius = new CornerRadius(50),
75+
ImageSource = "image.png"
8476
};
8577

8678
tabView.CenterButtonSettings = centerButtonSettings;
@@ -89,6 +81,8 @@ public MainPage()
8981

9082
{% endtabs %}
9183

84+
![.NET MAUI Customize the center button](images/CenterButton-Customizaton.jpg)
85+
9286
## Center button tapped event
9387

9488
When the center button is tapped, the `CenterButtonTapped` event occurs. Using this event we can set alert messages.

maui-toolkit/TabView/Tab-Bar-Customization.md

Lines changed: 3 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -119,35 +119,15 @@ tabView.HeaderHorizontalTextAlignment = TextAlignment.Center;
119119

120120
![Tab header text alignment](images/HorizontalTextAlignmentCenter.png)
121121

122-
123-
## Enable content transition
124-
125-
The .NET MAUI Tab View allows users to enable or disable the transition animation for tab content when switching between tabs using `IsContentTransitionEnabled` property.
126-
127-
{% tabs %}
128-
129-
{% highlight xaml %}
130-
<tabView:SfTabView IsContentTransitionEnabled="True" ContentTransitionDuration = 1000/>
131-
{% endhighlight %}
132-
133-
{% highlight C# %}
134-
SfTabView tabView = new SfTabView();
135-
tabView.IsContentTransitionEnabled = "True";
136-
tabView.ContentTransitionDuration = 1000;
137-
{% endhighlight %}
138-
139-
{% endtabs %}
140-
141-
142122
## Tab header alignment
143123

144124
The .NET MAUI TabView allows users to customize the header position using the `TabHeaderAlignment` property, providing greater flexibility in tab layout customization.
145125

146126
By default, the header is positioned at the Start. This property supports the following values:
147127

148-
* **Start** - Positions the tab header at the beginning of the tab view.
149-
* **Center** - Aligns the tab header at the center of the tab view.
150-
* **End** - Places the tab header at the end of the tab view.
128+
* **Start** - Positions the tab header at the beginning of the Tab View.
129+
* **Center** - Aligns the tab header at the center of the Tab View.
130+
* **End** - Places the tab header at the end of the Tab View.
151131

152132

153133
N> The `TabHeaderAlignment` property is applicable only when the `TabWidthMode` is set to SizeToContent.

maui-toolkit/TabView/Tab-Item-Customization.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -622,6 +622,24 @@ tabView.ContentTransitionDuration = 300;
622622

623623
{% endtabs %}
624624

625+
## Enable content transition
626+
627+
The .NET MAUI Tab View allows users to enable or disable the transition animation for tab content when switching between tabs using `IsContentTransitionEnabled` property.
628+
629+
{% tabs %}
630+
631+
{% highlight xaml %}
632+
<tabView:SfTabView IsContentTransitionEnabled="True" ContentTransitionDuration = "1000"/>
633+
{% endhighlight %}
634+
635+
{% highlight C# %}
636+
SfTabView tabView = new SfTabView();
637+
tabView.IsContentTransitionEnabled = "True";
638+
tabView.ContentTransitionDuration = 1000;
639+
{% endhighlight %}
640+
641+
{% endtabs %}
642+
625643
## Image size
626644

627645
You can customize the image size in the .NET MAUI TabView control by setting the [ImageSize](https://help.syncfusion.com/cr/maui-toolkit/Syncfusion.Maui.Toolkit.TabView.SfTabItem.html#Syncfusion_Maui_Toolkit_TabView_SfTabItem_ImageSize) property.
28.9 KB
Loading

0 commit comments

Comments
 (0)