Share via


BoundsConstraint.FromExpression Method

Definition

Returns a BoundsConstraint object that contains the compiled version of expression and is relative to either parents or the views referred to in expression.

public static Xamarin.Forms.BoundsConstraint FromExpression (System.Linq.Expressions.Expression<Func<Xamarin.Forms.Rectangle>> expression, System.Collections.Generic.IEnumerable<Xamarin.Forms.View> parents = default);
static member FromExpression : System.Linq.Expressions.Expression<Func<Xamarin.Forms.Rectangle>> * seq<Xamarin.Forms.View> -> Xamarin.Forms.BoundsConstraint

Parameters

expression
System.Linq.Expressions.Expression<System.Func<Rectangle>>

The expression from which to compile the constraint.

parents
System.Collections.Generic.IEnumerable<View>

The parents to consider when compiling the constraint.

Returns

Applies to