GetLayoutScale Method
Obtains layout scale of the given control.
Definition
Namespace: Avalonia.Layout
Assembly: Avalonia.Base (in Avalonia.Base.dll)
- C#
- VB
- F#
public static double GetLayoutScale(
Layoutable control
)
Public Shared Function GetLayoutScale (
control As Layoutable
) As Double
static member GetLayoutScale :
control : Layoutable -> float
Parameters
- Layoutable
- The control.
Return Value
DoubleExceptions
Exception | Thrown when control has no root or returned layout scaling is invalid. |