共用方式為


LayoutExtensions.ComputeDesiredSize(IView, Double, Double) 方法

定義

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Maui::Graphics::Size ComputeDesiredSize(Microsoft::Maui::IView ^ view, double widthConstraint, double heightConstraint);
public static Microsoft.Maui.Graphics.Size ComputeDesiredSize (this Microsoft.Maui.IView view, double widthConstraint, double heightConstraint);
static member ComputeDesiredSize : Microsoft.Maui.IView * double * double -> Microsoft.Maui.Graphics.Size
<Extension()>
Public Function ComputeDesiredSize (view As IView, widthConstraint As Double, heightConstraint As Double) As Size

參數

view
IView
widthConstraint
Double
heightConstraint
Double

傳回

適用於