Skip to main content

GetLayoutScale Method

Obtains layout scale of the given control.

Definition​

Namespace: Avalonia.Layout
Assembly: Avalonia.Base (in Avalonia.Base.dll)

public static double GetLayoutScale(
Layoutable control
)

Parameters​

  Layoutable
The control.

Return Value​

Double

Exceptions​

ExceptionThrown when control has no root or returned layout scaling is invalid.

See Also​

Reference​

LayoutHelper Class
Avalonia.Layout Namespace