Compartir a través de


VisualElement.OnMeasure(Double, Double) Método

Definición

Precaución

Use MeasureOverride instead

Método que se llama cuando se produce una medición del diseño.

protected:
 virtual Microsoft::Maui::SizeRequest OnMeasure(double widthConstraint, double heightConstraint);
protected virtual Microsoft.Maui.SizeRequest OnMeasure (double widthConstraint, double heightConstraint);
[System.Obsolete("Use MeasureOverride instead")]
protected virtual Microsoft.Maui.SizeRequest OnMeasure (double widthConstraint, double heightConstraint);
abstract member OnMeasure : double * double -> Microsoft.Maui.SizeRequest
override this.OnMeasure : double * double -> Microsoft.Maui.SizeRequest
[<System.Obsolete("Use MeasureOverride instead")>]
abstract member OnMeasure : double * double -> Microsoft.Maui.SizeRequest
override this.OnMeasure : double * double -> Microsoft.Maui.SizeRequest
Protected Overridable Function OnMeasure (widthConstraint As Double, heightConstraint As Double) As SizeRequest

Parámetros

widthConstraint
Double

Restricción de ancho de la solicitud.

heightConstraint
Double

Restricción de alto de la solicitud.

Devoluciones

Tamaño solicitado que el elemento requiere para mostrarse en el dispositivo.

Atributos

Se aplica a