How do I add a background color to a Label in XAML?

Platform: .NET MAUI| Category: Controls

To add a background color to a Label in XAML, you can use BackgroundColor to wrap the Label.

XAML

<Label Text="Label with background" BackgroundColor="Red"/>

Share with

Related FAQs

Couldn't find the FAQs you're looking for?

Please submit your question and answer.