Share via


VisualElement.IView.Measure(Double, Double) Methode

Definition

Updates die Größe einer Ansicht.

 virtual Microsoft::Maui::Graphics::Size Microsoft.Maui.IView.Measure(double widthConstraint, double heightConstraint) = Microsoft::Maui::IView::Measure;
Microsoft.Maui.Graphics.Size IView.Measure (double widthConstraint, double heightConstraint);
abstract member Microsoft.Maui.IView.Measure : double * double -> Microsoft.Maui.Graphics.Size
override this.Microsoft.Maui.IView.Measure : double * double -> Microsoft.Maui.Graphics.Size
Function Measure (widthConstraint As Double, heightConstraint As Double) As Size Implements IView.Measure

Parameter

widthConstraint
Double

Die Breite, die ein übergeordnetes Element einem untergeordneten Element zuordnen kann.

heightConstraint
Double

Die Höhe, die ein übergeordnetes Element einem untergeordneten Element zuordnen kann.

Gibt zurück

Gibt die gewünschte Größe für dieses Element zurück.

Implementiert

Gilt für: