Share via


ViewHandler.GetDesiredSize(Double, Double) Method

Definition

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

public:
 abstract Microsoft::Maui::Graphics::Size GetDesiredSize(double widthConstraint, double heightConstraint);
public abstract Microsoft.Maui.Graphics.Size GetDesiredSize (double widthConstraint, double heightConstraint);
abstract member GetDesiredSize : double * double -> Microsoft.Maui.Graphics.Size
Public MustOverride Function GetDesiredSize (widthConstraint As Double, heightConstraint As Double) As Size

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