I've looked through the Xamarin help pages, and might have missed something. As I cannot seem to find any explanation of what the padding numbers are. Here for example:
<StackLayout Padding="20,0,0,0"> <StackLayout Padding="20,10,0,0"> <StackLayout Padding="20,0">
What is the 1st, 2nd, 3rd and 4th and what happens when I just specify two padding numbers?
To get dynamic spacing similar to CSS "Space-Between" in Xamarin you can insert filler views between your views that actually have content. Omit the filler view after the last "actual" view so that the view you want is at the end (the "-50" label at the bottom in the example).
It can either be “Horizontal” or “Vertical”. And the height and width can be set from the property called “HeightRequest” and “WidthRequest”. The picture below shows the Stack layout.
They're defined as a Thickness
1 parameter - uniform size
2 parameters - horizontal, vertical
4 parameters - left, top, right, bottom
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With