我想采取RelativeLayout.XConstraint
与一些平台的具体价值。而且我想用OnPlatform关键字在xaml中执行此操作。 我想这一个没有运气,如何在XAML中制作平台特定的RelativeLayout.XConstraint?
<RelativeLayout>
<RelativeLayout.XConstraint>
<OnPlatform x:TypeArguments="Constraint" Android="{ConstraintExpression Type=Constant,Constant=6" iOS="{ConstraintExpression Type=Constant,Constant=3}" />
</RelativeLayout.XConstraint>
</RelativeLayout>
而且也试过这一个https://forums.xamarin.com/discussion/57281/how-can-i-make-platform-specific-relativelayout-xconstraint-in-xaml却是露出“为指定包含一个无法解决的循环约束”的例外。
在这里什么是x:TypeArguments
RelativeLayout.XConstraint
或任何其他方法?期待有关这方面的任何提示/建议。
Stephane Delcroix我试过这个,但没有运气。对于XConstraint/YConstraint而言,不会反映常量值[如果YConstraint标签已移至屏幕顶部]我使用的是xamarin表单版本2.3.2.127。有关此问题的更多更新? – Suchith
但在xamal预览器中显示正常。 – Suchith
使用XF 2.3.3的最新服务版本进行测试 –