Forum Xamarin Xamarin.Forms

Why are my labels truncating my text at '\n'?

At about 2 pm EST, I compiled and deployed my Xamarin.Forms app to my phone, and all the labels truncated their text at the first '\n' they encountered. I also noticed there was a message about installing API level 28, but I'm not sure if that's relevant. I create the labels using the .xaml file, and I assign the labels their text using the .xaml.cs file in the manner of Label.Text = "whatevertext\nmoretext".

Tagged:

Best Answer

  • coely329coely329 Member ✭✭
    Accepted Answer

    By reverting the Android project's Xamarin.Forms nuget package from the prerelease back to the latest stable release, I was able to get my labels working again. Is there anywhere that I should report this as a bug in the prerelease?

Answers

Sign In or Register to comment.