Edit

Share via


AspectRatio.Implicit Operator

Definition

Overloads

Implicit(AspectRatio to Double)

Implicit conversion operator to convert an AspectRatio to a Double value. This lets you use them easily in mathmatical expressions.

Implicit(Double to AspectRatio)

Implicit conversion operator to convert a Double to an AspectRatio value. This allows for x:Bind to bind to a double value.

Implicit(Int32 to AspectRatio)

Implicit conversion operator to convert a Int32 to an AspectRatio value. Creates a simple aspect ratio of N:1, where N is int

Implicit(AspectRatio to Double)

Implicit conversion operator to convert an AspectRatio to a Double value. This lets you use them easily in mathmatical expressions.

public static implicit operator double (Microsoft.Toolkit.Uwp.UI.Controls.AspectRatio aspect);
static member op_Implicit : Microsoft.Toolkit.Uwp.UI.Controls.AspectRatio -> double
Public Shared Widening Operator CType (aspect As AspectRatio) As Double

Parameters

aspect
AspectRatio

AspectRatio instance.

Returns

Applies to

Implicit(Double to AspectRatio)

Implicit conversion operator to convert a Double to an AspectRatio value. This allows for x:Bind to bind to a double value.

public static implicit operator Microsoft.Toolkit.Uwp.UI.Controls.AspectRatio (double ratio);
static member op_Implicit : double -> Microsoft.Toolkit.Uwp.UI.Controls.AspectRatio
Public Shared Widening Operator CType (ratio As Double) As AspectRatio

Parameters

ratio
Double

Double value representing the AspectRatio.

Returns

Applies to

Implicit(Int32 to AspectRatio)

Implicit conversion operator to convert a Int32 to an AspectRatio value. Creates a simple aspect ratio of N:1, where N is int

public static implicit operator Microsoft.Toolkit.Uwp.UI.Controls.AspectRatio (int width);
static member op_Implicit : int -> Microsoft.Toolkit.Uwp.UI.Controls.AspectRatio
Public Shared Widening Operator CType (width As Integer) As AspectRatio

Parameters

width
Int32

Int32 value representing the AspectRatio.

Returns

Applies to