共用方式為


IContentView.CrossPlatformMeasure(Double, Double) 方法

定義

提供這個介面方法,以便與舊版回溯相容性。 實作類別應該實作 ICrossPlatformLayout 介面,而不是直接實作此方法。

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

參數

widthConstraint
Double

測量 IContentView 的寬度限制。

heightConstraint
Double

測量 IContentView 的高度限制。

傳回

IContentView 所需的大小。

適用於