Sdílet prostřednictvím


IViewHandler.GetDesiredSize(Double, Double) Metoda

Definice

Vypočítá skutečnou velikost zobrazení na základě požadované velikosti a omezení.

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

Parametry

widthConstraint
Double

Omezení šířky zobrazení.

heightConstraint
Double

Omezení výšky pohledu.

Návraty

Vypočítaná velikost zobrazení přidruženého k této obslužné rutině.

Platí pro