using UWP.Markup;
var value = new Border()
.Padding(10)
.CornerRadius(10)
.BorderThickness(2)
.BorderBrush(Colors.Red)
.Background(Colors.Blue);
var value2 = new Border()
.Padding(10,10)
.CornerRadius(10,10)
.BorderThickness(2,2)
.BorderBrush(Colors.Red)
.Background(Colors.Blue);
// 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 border. The default is 0
.
Sets the radius
for the corners of the border. The default is topLeftRight: 0, bottomRightLeft: 0
.
Sets the radius
for the corners of the border. The default is top-left: 0, top-right: 0, bottom-right: 0, bottom-left: 0
.
Sets the thickness
of the border. The default is 0
.
Sets the thickness
of the border. The default leftRight and topBottom is 0
.
Sets the thickness
of the border. The default is left: 0, top: 0, right: 0, bottom: 0.
Sets the Brush
that is applied to the edge area of the Border. The default is null, (a null brush) which is evaluated as Transparent for rendering.
Sets the Brush
that fills the background (inner area) of the border. The default is null, (a null brush) which is evaluated as Transparent for rendering.
WinUI Methods
Sets the distance between the border and its child object.
Sets the radius
for the corners of the border.
Sets the collection of Transition
style elements that apply to child content of a Border.
Sets the child element to draw the border around.
Sets the thickness
of the border.
Sets the Brush
that is applied to the edge area of the Border. The default is null, (a null brush) which is evaluated as Transparent for rendering.
Sets the Brush
that fills the background (inner area) of the border. The default is null, (a null brush) which is evaluated as Transparent for rendering.
Sets an instance of BrushTransition
to automatically animate changes to the Background property. The default is null
.
Sets a value that indicates how far the background extends in relation to this element's border. The default is InnerBorderEdge
.