Aracılığıyla paylaş


IViewHandler.GetDesiredSize(Double, Double) Method

Definition

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

public:
 Microsoft::Maui::Graphics::Size GetDesiredSize(double widthConstraint, double heightConstraint);
public Microsoft.Maui.Graphics.Size GetDesiredSize (double widthConstraint, double heightConstraint);
abstract member GetDesiredSize : double * double -> Microsoft.Maui.Graphics.Size
Public 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.

Applies to