Bagikan melalui


IViewHandler.GetDesiredSize(Double, Double) Metode

Definisi

Menghitung ukuran tampilan aktual berdasarkan ukuran dan batasan yang diinginkan.

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

Parameter

widthConstraint
Double

Batasan pada lebar tampilan.

heightConstraint
Double

Batasan pada tinggi tampilan.

Mengembalikan

Ukuran komputasi untuk tampilan yang terkait dengan handler ini.

Berlaku untuk