I'm trying to find some margins analog in Xamarin.Forms documentation. Does anybody know is there something or paddings is all we are having?
Update: For best understanding of what margin is (it's from MSDN for WPF):
UPD Special for @AUSTX_RJL Margin value is Thickness , just like in any other XAML frameworks. You can set Thickness in XAML by setting one, two or four values separated by comma or whitespace: "1 2 3 4" is same as "1, 2, 3, 4" and sets: 1 for Left. 2 for Top.
The Xamarin. Forms Frame class is a layout used to wrap a view with a border that can be configured with color, shadow, and other options. Frames are commonly used to create borders around controls but can be used to create more complex UI. For more information, see Advanced Frame usage.
StackLayout organizes views in a one-dimensional line ("stack"), either horizontally or vertically. Views in a StackLayout can be sized based on the space in the layout, using layout options.
At Last! Xamarin Forms 2.2.0 includes Margins support!
Here are the docs with a great visual.
UPD Special for @AUSTX_RJL Margin value is Thickness
, just like in any other XAML frameworks.
You can set Thickness
in XAML by setting one, two or four values separated by comma or whitespace: "1 2 3 4"
is same as "1, 2, 3, 4"
and sets:
Left
Top
Right
Bottom
Fields of Thickness
"1 2"
sets:
Left
and Right
fieldsTop
and Bottom
fields "1"
sets 1 for all fields of Thickness
As of 2014-06-05, there are no margins in Xamarin.Forms
. Wrap your content in ContentView
, Frame
or any other Layout, and use the Padding
property.
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