Xamarin.Forms提供了5种布局,我这里只截取了4种,第五种是ScrollView,个人觉得..这个的操作作用大于布局作用..所以本章就不讲了....(tips:这就是我说的小麻烦)
1.StackLayout(线性布局)
StackLayout以线性的方式进行水平或垂直的视图布局。
我们直接创建一个ContentPage....Type=RelativeToParent,Property=Width,Factor=1,Constant=0}"
RelativeLayout.HeightConstraint...ConstraintExpression
Type=RelativeToParent,Property=Width,Factor=.5,Constant=0}"
RelativeLayout.HeightConstraint...写在最后
好了,到此,本篇的布局就结束了...
不管你们怎么说..是骂我坑也好..是说Xamarin不行也好..本系列都会坚持写完.
最后,感谢点推荐的兄弟们,感谢那些一直支持着我的朋友们,谢谢.