LayoutHelper Class
Provides helper methods needed for layout.
Namespace: Avalonia.LayoutAssembly: Avalonia.Base (in Avalonia.Base.dll) Version: 11.3.999
public static class LayoutHelper
Public NotInheritable Class LayoutHelper
[<AbstractClassAttribute>]
[<SealedAttribute>]
type LayoutHelper = class end
- Inheritance
- Object LayoutHelper
| LayoutEpsilon |
Epsilon value used for certain layout calculations.
Based on the value in WPF LayoutDoubleUtil.
|
| ApplyLayoutConstraints(Layoutable, Size) |
Calculates a control's size based on its Width,
Height, MinWidth,
MaxWidth, MinHeight and
MaxHeight.
|
| ArrangeChild(Layoutable, Size, Thickness) | |
| ArrangeChild(Layoutable, Size, Thickness, Thickness) | |
| GetLayoutScale(Layoutable) |
Obtains layout scale of the given control.
|
| InvalidateSelfAndChildrenMeasure(Layoutable) |
Invalidates measure for given control and all visual children recursively.
|
| MeasureChild(Layoutable, Size, Thickness) | |
| MeasureChild(Layoutable, Size, Thickness, Thickness) | |
| RoundLayoutSizeUp(Size, Double, Double) |
Rounds a size to integer values for layout purposes, compensating for high DPI screen
coordinates by rounding the size up to the nearest pixel.
|
| RoundLayoutThickness(Thickness, Double, Double) |
Rounds a thickness to integer values for layout purposes, compensating for high DPI screen
coordinates.
|
| RoundLayoutValue(Double, Double) |
Calculates the value to be used for layout rounding at high DPI by rounding the value
up or down to the nearest pixel.
|
| RoundLayoutValueUp(Double, Double) |
Calculates the value to be used for layout rounding at high DPI by rounding the value up
to the nearest pixel.
|