【发布时间】:2019-02-04 05:26:25
【问题描述】:
我在RelativeLayout 中有一个TableView:
<some code>
<RelativeLayout x:Name="relativeLayout">
<some code >
<TableView x:Name="tableView"
RelativeLayout.WidthConstraint="{ConstraintExpression
Type=RelativeToParent, Property=Width, Factor=1, Constant=0}"
RelativeLayout.YConstraint="{ConstraintExpression
Type=RelativeToView, ElementName=banner, Property=Height, Factor=1,Constant=120}"
RelativeLayout.HeightConstraint="{ConstraintExpression
Type=RelativeToParent,Property=Height, Factor=1, Constant=210}">
<some code>
我需要在 210(纵向设备方向)和 500(横向设备方向)之间切换 TableView HeightConstraint 的常量值。
谢谢
【问题讨论】:
标签: xamarin.forms