Text spacing - .NET MAUI
In MAUI, there are a few properties to adjust text spacing:
CharacterSpacing
: Set spacing between characters.LineHeight
: Set spacing between lines.Padding
: Set padding between paragraphs.
You can also make a Platform Behavior
to use even more properties from native Android and iOS elements.
Usage (C#)
var label = new Label
{
CharacterSpacing = 3,
LineHeight = 32,
Padding = 10
};
Usage (XAML)
<Label CharacterSpacing="3" LineHeight="32" Margin="10" Padding="10" />