LayoutHelper Class

Summary

Provides helper methods needed for layout.
Namespace
Avalonia.Layout
Base Types
  • object
graph BT Type-->Base0["object"] Type["LayoutHelper"] class Type type-node

Syntax

public static class LayoutHelper

Properties

Name Value Summary
LayoutEpsilon double
Epsilon value used for certain layout calculations. Based on the value in WPF LayoutDoubleUtil.
static

Methods

Name Value Summary
ApplyLayoutConstraints(ILayoutable, Size) Size
Calculates a control's size based on its Width, Height, MinWidth, MaxWidth, MinHeight and MaxHeight.
static
ArrangeChild(ILayoutable, Size, Thickness) Size
static
ArrangeChild(ILayoutable, Size, Thickness, Thickness) Size
static
GetLayoutScale(ILayoutable) double
Obtains layout scale of the given control.
static
InvalidateSelfAndChildrenMeasure(ILayoutable) void
Invalidates measure for given control and all visual children recursively.
static
MeasureChild(ILayoutable, Size, Thickness) Size
static
MeasureChild(ILayoutable, Size, Thickness, Thickness) Size
static
RoundLayoutSize(Size, double, double) Size
Rounds a size to integer values for layout purposes, compensating for high DPI screen coordinates.
static
RoundLayoutValue(double, double) double
Calculates the value to be used for layout rounding at high DPI.
static