共用方式為


Constraint.RelativeToView 方法

定義

public:
 static Microsoft::Maui::Controls::Compatibility::Constraint ^ RelativeToView(Microsoft::Maui::Controls::View ^ view, Func<Microsoft::Maui::Controls::Compatibility::RelativeLayout ^, Microsoft::Maui::Controls::View ^, double> ^ measure);
public static Microsoft.Maui.Controls.Compatibility.Constraint RelativeToView (Microsoft.Maui.Controls.View view, Func<Microsoft.Maui.Controls.Compatibility.RelativeLayout,Microsoft.Maui.Controls.View,double> measure);
static member RelativeToView : Microsoft.Maui.Controls.View * Func<Microsoft.Maui.Controls.Compatibility.RelativeLayout, Microsoft.Maui.Controls.View, double> -> Microsoft.Maui.Controls.Compatibility.Constraint
Public Shared Function RelativeToView (view As View, measure As Func(Of RelativeLayout, View, Double)) As Constraint

參數

view
View

傳回

適用於