VisualElement.OnMeasure(Double, Double) Método

Definição

Cuidado

Use MeasureOverride instead

Método chamado quando ocorre uma medida de layout.

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

A restrição de largura para a solicitação.

heightConstraint
Double

A restrição de altura a solicitar.

Retornos

O tamanho solicitado que o elemento requer para ser exibido no dispositivo.

Atributos

Aplica-se a