Label

A Label is used for displaying single or multi-line text.

Single Line


        <Label Text="Hello World!" />
                

Multi Line


        <Label>
            <Label.Text>
                First line
                Second line
            </Label.Text>
        </Label>                    
                

Text Color


        <Label TextColor="Red" 
            FontSize = "26" 
            Text="Red Line" />
            

Transform Text to Uppercase/Lowercase


        <Label Text="Line 1."
             TextTransform="Uppercase" />
        <Label Text="Line 2."
             TextTransform="Lowercase" />
            

WordWrap


        <Label Text="Lorem ipsum dolor sit amet, consectetur adipiscing elit. In facilisis nulla eu felis fringilla vulputate. Nullam porta eleifend lacinia. Donec at iaculis tellus."
                LineBreakMode="WordWrap" />
            

Underline


        <Label Text="Line 1" TextDecorations="Underline"  />
            

Strikethrough


        <Label Text="Line 2" TextDecorations="Strikethrough" />
            

Download

.NET MAUI