What is the difference between Xamarin.Form's LayoutOptions, especially Fill and Expand?
In Xamarin.Forms every View
has the two properties HorizontalOptions
and VerticalOptions
. Both are of type LayoutOptions
and can have one of the following values:
LayoutOptions.Start
LayoutOptions.Center
LayoutOptions.End
LayoutOptions.Fill
LayoutOptions.StartAndExpand
LayoutOptions.CenterAndExpand
LayoutOptions.EndAndExpand
LayoutOptions.FillAndExpand
Apparently it controls the view's alignment on the parent view. But how exactly is the behavior of each individual option? And what is the difference between Fill
and the suffix Expand
?