maui
maui copied to clipboard
Fix Label Multilinetruncation (MaxLines / LineBreakMode)
Description of Change
| Android | iOS | Windows |
|---|---|---|
![]() |
Summary:
- The Button does not have the MaxLines property, it always stays with a single line and doing the tail truncation.
- With a Label, if the maximum number of lines is not specified, when establishing the LineBreakMode.TailTruncation the maximum number of lines used is 1, and tail truncation is applied.
- If MaxLines and LineBreakMode are established in the Label, both options are applied.
Issues Fixed
Fixes #14125
Thank you for your pull request. We are auto-formatting your source code to follow our code guidelines.
Are there any tests we can add for these changes?
Sure.

One little step closer... Please someone who can merge it... 🙏
Tests are failing?
Hi @jsuarezruiz. We have added the "s/pr-needs-author-input" label to this issue, which indicates that we have an open question/action for you before we can take further action. This PRwill be closed automatically in 14 days if we do not hear back from you by then - please feel free to re-open it if you come back to this PR after that time.
Please test changes against https://github.com/dotnet/maui/issues/18059, too. Thanks!
Please test changes against #18059, too. Thanks!
Added a specific device test to validate that case.
Is it possible to include this PR in the next Servicing Release?
/rebase
/rebase
/rebase
