Descriptive headers - .NET MAUI
In MAUI, there heading levels
is a built-in feature that can be used to mark headings.
Usage (C#)
var headerLabel = new Label
{
Text = "Hello"
};
SemanticProperties.SetHeadingLevel(headerLabel, SemanticHeadingLevel.Level1);
Usage (XAML)
<Label
SemanticProperties.HeadingLevel="Level1"
Text="Hello" />