最佳答案
在 Xamarin。表单每个 View都有两个属性 HorizontalOptions和 VerticalOptions。两者都属于 LayoutOptions类型,可以具有以下值之一:
LayoutOptions.StartLayoutOptions.CenterLayoutOptions.EndLayoutOptions.FillLayoutOptions.StartAndExpandLayoutOptions.CenterAndExpandLayoutOptions.EndAndExpandLayoutOptions.FillAndExpand显然,它控制着视图在父视图上的对齐方式。但是每个选项的行为到底是怎样的呢?Fill和后缀 Expand的区别是什么?