AspectRatio Constructors

Definition

Overloads

AspectRatio(Double)

Initializes a new instance of the AspectRatio struct with the specific numerical aspect ratio.

AspectRatio(Double, Double)

Initializes a new instance of the AspectRatio struct with the provided width and height.

AspectRatio(Double)

Initializes a new instance of the AspectRatio struct with the specific numerical aspect ratio.

public AspectRatio (double ratio);
new Microsoft.Toolkit.Uwp.UI.Controls.AspectRatio : double -> Microsoft.Toolkit.Uwp.UI.Controls.AspectRatio
Public Sub New (ratio As Double)

Parameters

ratio
Double

Raw Aspect Ratio, Height will be 1.

Applies to

AspectRatio(Double, Double)

Initializes a new instance of the AspectRatio struct with the provided width and height.

public AspectRatio (double width, double height);
new Microsoft.Toolkit.Uwp.UI.Controls.AspectRatio : double * double -> Microsoft.Toolkit.Uwp.UI.Controls.AspectRatio
Public Sub New (width As Double, height As Double)

Parameters

width
Double

Width side of the ratio.

height
Double

Height side of the ratio.

Applies to