BoundsConstraint.FromExpression Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 Microsoft.Maui.Controls.BoundsConstraint FromExpression (System.Linq.Expressions.Expression<Func<Microsoft.Maui.Graphics.Rect>> expression, System.Collections.Generic.IEnumerable<Microsoft.Maui.Controls.View> parents = default);
static member FromExpression : System.Linq.Expressions.Expression<Func<Microsoft.Maui.Graphics.Rect>> * seq<Microsoft.Maui.Controls.View> -> Microsoft.Maui.Controls.BoundsConstraint
Public Shared Function FromExpression (expression As Expression(Of Func(Of Rect)), Optional parents As IEnumerable(Of View) = Nothing) As BoundsConstraint
Parameters
- expression
- Expression<Func<Rect>>
The expression from which to compile the constraint.
- parents
- IEnumerable<View>
The parents to consider when compiling the constraint.
Returns
Applies to
Berkolaborasi dengan kami di GitHub
Sumber untuk konten ini dapat ditemukan di GitHub, yang juga dapat Anda gunakan untuk membuat dan meninjau masalah dan menarik permintaan. Untuk informasi selengkapnya, lihat panduan kontributor kami.