다음을 통해 공유


Constraint Class

Definition

A layout constraint used by RelativeLayouts.

[Xamarin.Forms.TypeConverter(typeof(Xamarin.Forms.ConstraintTypeConverter))]
public sealed class Constraint
type Constraint = class
Inheritance
System.Object
Constraint
Attributes

Methods

Constant(Double)

Returns a Constraint object that constrains an element to size.

FromExpression(Expression<Func<Double>>)

Returns a Constraint that is calculated from expression.

RelativeToParent(Func<RelativeLayout,Double>)

Returns a Constraint object that constrains an element relative to its parent's size.

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

Returns a Constraint object that constrains an element relative to the view parameter.

Applies to