共用方式為


Constraint.RelativeToView 方法

定義

傳回 Constraint 物件,將項目限制為相對於 view 參數。

public static Xamarin.Forms.Constraint RelativeToView(Xamarin.Forms.View view, Func<Xamarin.Forms.RelativeLayout,Xamarin.Forms.View,double> measure);
static member RelativeToView : Xamarin.Forms.View * Func<Xamarin.Forms.RelativeLayout, Xamarin.Forms.View, double> -> Xamarin.Forms.Constraint

參數

view
View

要計算條件約束的檢視。

measure
System.Func<RelativeLayout,View,System.Double>

傳回

適用於