Home » FAQ » .NET MAUI » How do I add a background color to a Label in XAML?
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"/>
Platform BlazorASP.NETWinFormsWPF.NET MAUI
Question *
Answer (Optional)
Email (Optional)
Email address is only for further clarification on your FAQ request. It will not be used for any other purpose.
Please leave this field empty.
Share with