Spacing:
Spacing is a Value in Device Pixels which indicates the amount of space between each child element.
XML Syntax:
If We want to add some space between the views in Stack Layout , then we will use the following syntax to add some space.
<StackLayout Spacing="20" >
By default, Stack Layout will add a 6px margin between views. We can set to have no margin or margin other than 6px by setting Spacing Property on Stack Layout. The Following Example show, how we can set no margin using spacing property.
<StackLayout Spacing="0" >
Now let's add some space in same example and check out the difference.
<StackLayout Spacing="20" >
WRITE FOR INFOBROTHER