BoundsConstraint.FromExpression(Expression<Func<Rectangle>>, IEnumerable<View>) 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
Expression<Func<Rectangle>>

The expression from which to compile the constraint.

parents
IEnumerable<View>

The parents to consider when compiling the constraint.

Returns

BoundsConstraint

Applies to