Maui - Label - long text

Dani_S 4,501 Reputation points
2024-02-20T12:02:37.1233333+00:00

Hi, I sometimes have long text in label text, how i can handle it to be in two rows? Thanks,

Developer technologies | .NET | .NET MAUI
{count} votes

Accepted answer
  1. Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 50,126 Reputation points Microsoft External Staff
    2024-02-21T02:15:36.4566667+00:00

    Hello,

    Best practices for how to wrap MAUI labels have been given in the official documentation.

    Please refer to the following documentation instructions and sample code snippets.

            <Label>
                <Label.Text>
                    Long TextLong Text
    Second Long Text
                </Label.Text>
            </Label>
    

    Best Regards,

    Alec Liu.


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.