using UWP.Markup;
var value = new Grid()
.Rows("Auto", "*", "200")
.Columns("Auto", "*", "200")
.AddChild(new TextBlock().Text("1"))
.AddChild(new TextBlock().Text("2").Row(0).Column(1))
.AddChild(new TextBlock().Text("3").Row(0).Column(2))
.Spacing(10)
.Padding(10)
.CornerRadius(10);
// doc ⬇️
Custom Methods
Sets the distance between the border
and its child object. The default value is 0
.
Sets the distance between the border
and its child object. The default value is left: 0, top: 0, right: 0, bottom: 0.
Sets the distance between the border
and its child object. The default value is horizontal: 0, vertical: 0.
Sets the radius
for the corners
of the panel's border. The default is 0
.
Sets the radius
for the corners
of the panel's border. The default is topLeftRight: 0, bottomRightLeft: 0.
Sets the radius
for the corners
of the panel's border. The default is top-left: 0, top-right: 0, bottom-right: 0, bottom-left: 0.
Sets the border thickness
of the panel. The default is 0
.
Sets the border thickness
of the panel. The default leftRight and topBottom is 0.
Sets the border thickness
of the panel. The default is left: 0, top: 0, right: 0, bottom: 0.
Sets a brush
that describes the border fill of the panel. The default is null
, (a null brush) which is evaluated as Transparent for rendering.
Sets the uniform distance (in pixels)
between grid rows
and grid columns
.
Sets the uniform distance (in pixels)
between grid rows
and grid columns
.
Add a RowDefinition
to the RowDefinitions collection
of the Grid
.
Add a ColumnDefinition
to the ColumnDefinitions collection
of the Grid
.
Add rows
as a params
array of RowDefinition
to the RowDefinitions collection of the Grid
.
Add columns
as a params
array of ColumnDefinition
to the ColumnDefinitions collection of the Grid
.
Add Rows
as a params
array of string
to the RowDefinitions collection of the Grid
.
var grid = new Grid()
.Rows("Auto", "*", "2*", "200");
Add Columns
as a params
array of string
to the ColumnDefinitions collection of the Grid
.
var grid = new Grid()
.Columns("*", "Auto", "2*", "200");
WinUI Methods