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"/>