Constraint Constraint Class

Definition

A layout constraint used by RelativeLayouts.

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

Methods

Constant(Double) Constant(Double)

Returns a Constraint object that constrains an element to size.

FromExpression(Expression<Func<Double>>) FromExpression(Expression<Func<Double>>)

Returns a Constraint that is calculated from expression.

RelativeToParent(Func<RelativeLayout,Double>) RelativeToParent(Func<RelativeLayout,Double>)

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

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

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

Extension Methods

LoadFromXaml<TXaml>(TXaml, String) LoadFromXaml<TXaml>(TXaml, String)

Returns an initialized view by loading the specified xaml.

LoadFromXaml<TXaml>(TXaml, Type) LoadFromXaml<TXaml>(TXaml, Type)

Returns a TXaml with the properties that are defined in the application manifest for callingType.

Applies to