Constraint 类

定义

RelativeLayout 使用的布局约束。

[Xamarin.Forms.TypeConverter(typeof(Xamarin.Forms.ConstraintTypeConverter))]
public sealed class Constraint
type Constraint = class
继承
System.Object
Constraint
属性

方法

Constant(Double)

返回一个 Constraint 对象,该对象将元素约束至 size

FromExpression(Expression<Func<Double>>)

返回通过 expression 计算的 Constraint

RelativeToParent(Func<RelativeLayout,Double>)

返回一个 Constraint 对象,该对象根据元素的父级大小来约束该元素。

RelativeToView(View, Func<RelativeLayout,View,Double>)

返回一个 Constraint 对象,该对象根据 view 参数来约束元素。

适用于