using UWP.Markup;
var value = new TextBlock()
.Text("Value")
.Alignment(VerticalAlignment.Center, HorizontalAlignment.Right);
// doc ⬇️
Custom Methods
Sets a value that indicates the thickness
of padding space between the boundaries of the content area and the content displayed by a TextBlock
. The default value is 0
.
Sets a value that indicates the thickness
of padding space between the boundaries of the content area and the content displayed by a TextBlock
. The default value is left: 0, top: 0, right: 0, bottom: 0.
Sets a value that indicates the thickness of padding space between the boundaries of the content area and the content displayed by a TextBlock
. The default value is horizontal: 0, vertical: 0.
Sets the Brush to apply to the text contents of the TextBlock
. The default is a null brush
from a pure code perspective, but the default text styles set to Black (for Light theme) or White (for Dark theme) for a TextBlock
element in UI.
WinUI Methods