【发布时间】:2015-10-04 10:44:50
【问题描述】:
我想在 Xamarin.Forms 中将一张图像与RelativeLayout 的顶部对齐,并将一张图像与底部对齐。
我该怎么做?
<RelativeLayout>
<Image
Aspect="Fill"
Source = "header_login.png"></Image>
<Image
Aspect="Fill"
Source = "login_footer_2.png"
RelativeLayout.XConstraint=
"{ConstraintExpression Type=RelativeToParent,
Property=Width,
Factor=0}"
RelativeLayout.YConstraint=
"{ConstraintExpression Type=RelativeToParent,
Property=Height,
Factor=1}" ></Image>
</RelativeLayout>
【问题讨论】:
标签: xamarin xamarin.forms alignment