ViewHandler.GetDesiredSize(Double, Double) Method

Definition

Computes the actual size of a view based on the desired size and constraints.

C#
public abstract Microsoft.Maui.Graphics.Size GetDesiredSize (double widthConstraint, double heightConstraint);

Parameters

widthConstraint
Double

The constraint on the width of the view.

heightConstraint
Double

The constraint on the height of the view.

Returns

The computed size for the view associated to this handler.

Implements

Applies to

Product Versions
.NET MAUI 8, 9