Xamarin.Forms Guides | Samples

Xamarin.Forms.Constraint Class

A layout constraint used by RelativeLayouts.

See Also: Constraint

Syntax

[Xamarin.Forms.TypeConverter(typeof(Xamarin.Forms.ConstraintTypeConverter))]
public sealed class Constraint

Requirements

Namespace: Xamarin.Forms
Assembly: Xamarin.Forms.Core (in Xamarin.Forms.Core.dll)
Assembly Versions: 1.0.0.0, 1.1.0.0, 1.2.0.0, 1.3.0.0, 1.4.0.0, 1.5.0.0, 2.0.0.0

The members of Xamarin.Forms.Constraint are listed below.

See Also: Object

Public Methods

static
Constant(Double) : Constraint
Returns a Constraint object that constrains an element to size.
static
FromExpression(System.Linq.Expressions.Expression<Func<double>>) : Constraint
Returns a Constraint that is calculated from expression.
static
RelativeToParent(Func<RelativeLayout, double>) : Constraint
Returns a Constraint object that constrains an element relative to its parent's size.
static
RelativeToView(View, Func<RelativeLayout, View, double>) : Constraint
Returns a Constraint object that constrains an element relative to the view parameter.