VisualElement.IView.Measure(Double, Double) Method

Definition

Updates the size of an View.

 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

Parameters

widthConstraint
Double

The width that a parent element can allocate a child element.

heightConstraint
Double

The height that a parent element can allocate a child element.

Returns

Return the desired Size for this element.

Implements

Applies to