Udostępnij za pośrednictwem


VisualElement.MeasureOverride(Double, Double) Metoda

Definicja

Zapewnia sposób zezwalania na zastępowanie Measure(Double, Double, MeasureFlags) podklas, mimo że interfejs musi być jawnie zaimplementowany, aby uniknąć konfliktu ze starą metodą Miary.

protected:
 virtual Microsoft::Maui::Graphics::Size MeasureOverride(double widthConstraint, double heightConstraint);
protected virtual Microsoft.Maui.Graphics.Size MeasureOverride (double widthConstraint, double heightConstraint);
abstract member MeasureOverride : double * double -> Microsoft.Maui.Graphics.Size
override this.MeasureOverride : double * double -> Microsoft.Maui.Graphics.Size
Protected Overridable Function MeasureOverride (widthConstraint As Double, heightConstraint As Double) As Size

Parametry

widthConstraint
Double

Ograniczenie szerokości do żądania.

heightConstraint
Double

Ograniczenie wysokości do żądania.

Zwraca

Żądany rozmiar, którego element chce wyświetlić na urządzeniu.

Dotyczy