You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To Limit maximum lines of Label and indicate text truncation we use MaxLines and LineBreakMode properties of Label control.
This works fine in Xamarin.Forms but in .Net Maui it's not working properly.
Steps to Reproduce
Create a new project of .Net Maui
It will create MainPage.xaml automatically in that file on second label add some extra text. Also add MaxLines="2" and LineBreakMode="TailTruncation".
Now run the app in both platform it will give different output.
Output
It should show the label with two lines and at the end of second line it will show '...' like this.
But in maui it's not working that way in both Android & iOS. In Android it does shows ellipsis but not second line. Check the attached screenshot.
Description
To Limit maximum lines of Label and indicate text truncation we use MaxLines and LineBreakMode properties of Label control.
This works fine in Xamarin.Forms but in .Net Maui it's not working properly.
Steps to Reproduce
Output
It should show the label with two lines and at the end of second line it will show '...' like this.
But in maui it's not working that way in both Android & iOS. In Android it does shows ellipsis but not second line. Check the attached screenshot.
Link to public reproduction project repository
https://github.com/divyesh008/MauiLabel_Bug.git
Version with bug
6.0.400
Last version that worked well
6.0.400
Affected platforms
iOS, Android
Affected platform versions
iOS 15, Android 11
Did you find any workaround?
Not yet.
Relevant log output
No response
The text was updated successfully, but these errors were encountered: