-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Linebreak in Label,Text XAML not displayed in App #21605
Comments
Hey @Kaibaer! I checked out your about page branch and seems to work all fine here on Android. You specified this also happens on Android, right? Didn't check Windows, but all other platforms seem to work so I kinda expect it to work on Windows as well. The one thing I needed to change is that you both specify the If you still see this behavior, can you provide some more clarity and details on where you're seeing it exactly? |
I found out it actually happens as soon as you edit the XAML page while having the emulator open to have a visual indication. So, upon start it looks okay and takes the linebreak. However, as your screenshot @jfversluis and @ninachen03 show, the text indentation is a topic. Is there a way to deactivate the identation? It also seems to ignore indentation for the first sentence, which also has the same indents as the other lines. |
Unfortunately it's not a topic. The space is there in the text so it's shown that way, if you don't want to do it like that use the new line characters for XAML or bind your text through a view model or provide it through resources. There is not much we can change about that. OK so what you are describing is Hot Reload, unfortunately that is on the tooling side and should be reported in a different way. I will close this one and add a tag that will provide you with the necessary information on how to do that. cc: @drasticactions |
Thanks for the issue report @Kaibaer! This issue appears to be a problem with Visual Studio, so we ask that you use the VS feedback tool to report the issue. That way it will get to the routed to the team that owns this experience in VS. If you encounter a problem with Visual Studio, we want to know about it so that we can diagnose and fix it. By using the Report a Problem tool, you can collect detailed information about the problem, and send it to Microsoft with just a few button clicks.
|
Description
In order to put in content on an About page, I want to use line breaks. However, when using an <Label.Text>, the line breaks do not show up as actually shown in the documentation (https://learn.microsoft.com/de-de/dotnet/maui/user-interface/controls/label?view=net-maui-8.0)
The text is concatenated in the same line until the space for the line is filled out.
Steps to Reproduce
Link to public reproduction project repository
https://github.com/Kaibaer/CinemaRaffler
Version with bug
8.0.7 SR2
Is this a regression from previous behavior?
No, this is something new, Not sure, did not test other versions
Last version that worked well
Unknown/Other
Affected platforms
Android, Windows
Affected platform versions
Android 14, Windows 11
Did you find any workaround?
No response
Relevant log output
No response
The text was updated successfully, but these errors were encountered: