共用方式為


ViewHandler.GetDesiredSize(Double, Double) 方法

定義

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

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

參數

widthConstraint
Double

檢視寬度的條件約束。

heightConstraint
Double

檢視高度的條件約束。

傳回

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

實作

適用於