Share via


ConstraintExpression Class

Definition

Defines a constraint relationship.

public class ConstraintExpression : Xamarin.Forms.Xaml.IMarkupExtension<Xamarin.Forms.Constraint>
type ConstraintExpression = class
    interface IMarkupExtension<Constraint>
    interface IMarkupExtension
Inheritance
System.Object
ConstraintExpression
Implements

Constructors

ConstraintExpression()

Creates a new ConstraintExpression with default values.

Properties

Constant

Gets or sets the constant constraint value.

ElementName

Gets or sets the name of a source element against which to calculate the constraint.

Factor

Gets or sets the factor by which to scale a constrained dimension, relative to the source element.

Property

Gets or sets name of the property on the source element to use in the constraint calculation.

Type

Gets or sets the constraint type.

Methods

ProvideValue(IServiceProvider)

When implemented in a derived class, returns an object that is provided as the value of the target property for this markup extension.

Explicit Interface Implementations

IMarkupExtension.ProvideValue(IServiceProvider)

For internal use only.

Applies to