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 |
---|---|---|
Apply |
Size |
Calculates a control's size based on its
Width ,
Height , MinWidth ,
MaxWidth , MinHeight and
MaxHeight .
static
|
ArrangeChild |
Size |
static
|
ArrangeChild |
Size |
static
|
GetLayoutScale |
double |
Obtains layout scale of the given control.
static
|
Invalidate |
void |
Invalidates measure for given control and all visual children recursively.
static
|
MeasureChild |
Size |
static
|
MeasureChild |
Size |
static
|
RoundLayoutSize |
Size |
Rounds a size to integer values for layout purposes, compensating for high DPI screen
coordinates.
static
|
RoundLayoutValue |
double |
Calculates the value to be used for layout rounding at high DPI.
static
|