Skip to content

Commit 18ad38e

Browse files
committed
Updated CheckBox sample.
1 parent cc3e2dd commit 18ad38e

File tree

1 file changed

+26
-2
lines changed

1 file changed

+26
-2
lines changed

README.md

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,26 @@
1-
# How-to-wrap-text-in-DOTNET-MAUI-CheckBox
2-
This repository contains a sample demonstrating of wrap text in .NET MAUI CheckBox
1+
# How-to-wrap-text-in-.NET-MAUI-CheckBox
2+
This repository contains a sample demonstrating of wrapping text using LineBreakMode property in .NET MAUI CheckBox.
3+
4+
## LineBreakMode support in .NET MAUI CheckBox (SfCheckBox)
5+
The LineBreakModeSupport feature enables flexible text truncation and wrapping options within user interface components, enhancing readability and presentation. It facilitates various modes like WordWrap, CharacterWrap, MiddleTruncation, etc., accommodating diverse layout requirements efficiently.
6+
7+
The following code example illustrate how to set LineBreakMode in SfCheckBox.
8+
9+
**XAML**
10+
```
11+
<syncfusion:SfCheckBox Text="By clicking here, I state that I have read and understood the terms and conditions." LineBreakMode="WordWrap"/>
12+
<syncfusion:SfCheckBox Text="By clicking here, I state that I have read and understood the terms and conditions." LineBreakMode="CharacterWrap"/>
13+
<syncfusion:SfCheckBox Text="By clicking here, I state that I have read and understood the terms and conditions." LineBreakMode="HeadTruncation"/>
14+
<syncfusion:SfCheckBox Text="By clicking here, I state that I have read and understood the terms and conditions." LineBreakMode="MiddleTruncation"/>
15+
<syncfusion:SfCheckBox Text="By clicking here, I state that I have read and understood the terms and conditions." LineBreakMode="TailTruncation"/>
16+
<syncfusion:SfCheckBox Text="By clicking here, I state that I have read and understood the terms and conditions." LineBreakMode="NoWrap"/>
17+
18+
```
19+
20+
**C#**
21+
```
22+
SfCheckBox sfCheckBox = new SfCheckBox();
23+
sfCheckBox.Text = "By clicking here, I state that I have read and understood the terms and conditions.";
24+
sfCheckBox.LineBreakMode = LineBreakMode.WordWrap;
25+
26+
```

0 commit comments

Comments
 (0)