在Xamarin.Forms中,每个View
都有两个属性HorizontalOptions
和VerticalOptions
。这两种类型都是LayoutOptions
类型,可以具有下列值之一:
LayoutOptions.Start
LayoutOptions.Center
LayoutOptions.End
LayoutOptions.Fill
LayoutOptions.StartAndExpand
LayoutOptions.CenterAndExpand
LayoutOptions.EndAndExpand
LayoutOptions.FillAndExpand
显然,它控制视图在父视图上的对齐方式。但是,每个选项的行为到底是怎样的呢?Fill
和后缀Expand
有什么区别?
https://stackoverflow.com/questions/25338533
复制相似问题