Udostępnij za pośrednictwem


VisualElement.IView.Measure(Double, Double) Metoda

Definicja

Aktualizacje rozmiar widoku.

 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

Parametry

widthConstraint
Double

Szerokość elementu nadrzędnego może przydzielić element podrzędny.

heightConstraint
Double

Wysokość, którą element nadrzędny może przydzielić element podrzędny.

Zwraca

Zwróć żądany rozmiar dla tego elementu.

Implementuje

Dotyczy