Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can someone explain Xamarin padding order?

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?

like image 275
Alan2 Avatar asked Aug 11 '17 20:08

Alan2


People also ask

How do I give a space in Xamarin?

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).

What are the types of Layout control in the Xamarin forms?

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.


1 Answers

They're defined as a Thickness

1 parameter - uniform size

2 parameters - horizontal, vertical

4 parameters - left, top, right, bottom

like image 137
Jason Avatar answered Sep 18 '22 22:09

Jason