Share via


IViewHandler.GetDesiredSize(Double, Double) 方法

定義

根據所需的大小和條件約束,計算檢視的實際大小。

public:
 Microsoft::Maui::Graphics::Size GetDesiredSize(double widthConstraint, double heightConstraint);
public Microsoft.Maui.Graphics.Size GetDesiredSize (double widthConstraint, double heightConstraint);
abstract member GetDesiredSize : double * double -> Microsoft.Maui.Graphics.Size
Public Function GetDesiredSize (widthConstraint As Double, heightConstraint As Double) As Size

參數

widthConstraint
Double

檢視寬度的條件約束。

heightConstraint
Double

檢視高度的條件約束。

傳回

與這個處理程式相關聯之檢視的計算大小。

適用於