Skip to content
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

Updated RadioButton sample for LineBreakMode. #2

Merged
merged 2 commits into from
Jun 27, 2024
Merged
Changes from 1 commit
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
28 changes: 26 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,26 @@
# How-to-wrap-text-in-DOTNET-MAUI-RadiButton
This repository contains a sample demonstrating of wrap text in .NET MAUI RadiButton.
# How-to-wrap-text-in-.NET-MAUI-RadiButton
This repository contains a sample demonstrating of wrapping text using LineBreakMode property in .NET MAUI RadiButton.

## LineBreakMode support in .NET MAUI RadiButton (SfRadiButton)
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.

naveenkumar-sanjeevirayan marked this conversation as resolved.
Show resolved Hide resolved
The following code example illustrate how to set LineBreakMode in SfRadiButton.

**XAML**
```
<syncfusion:SfRadioButton Text="By clicking here, I state that I have read and understood the terms and conditions." LineBreakMode="WordWrap"/>
<syncfusion:SfRadioButton Text="By clicking here, I state that I have read and understood the terms and conditions." LineBreakMode="CharacterWrap"/>
<syncfusion:SfRadioButton Text="By clicking here, I state that I have read and understood the terms and conditions." LineBreakMode="HeadTruncation"/>
<syncfusion:SfRadioButton Text="By clicking here, I state that I have read and understood the terms and conditions." LineBreakMode="MiddleTruncation"/>
<syncfusion:SfRadioButton Text="By clicking here, I state that I have read and understood the terms and conditions." LineBreakMode="TailTruncation"/>
<syncfusion:SfRadioButton Text="By clicking here, I state that I have read and understood the terms and conditions." LineBreakMode="NoWrap"/>

```

**C#**
```
SfRadioButton radioButton = new SfRadioButton();
radioButton.Text = "By clicking here, I state that I have read and understood the terms and conditions.";
radioButton.LineBreakMode = LineBreakMode.WordWrap;

```
Loading