LinedFlowLayout.ActualLineHeight Property

Definition

Gets effective fixed height of the lines.

public:
 property double ActualLineHeight { double get(); };
/// [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="LinedFlowLayout::s_defaultActualLineHeight")]
/// [get: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="LinedFlowLayout::s_defaultActualLineHeight")]
double ActualLineHeight();
[Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="LinedFlowLayout::s_defaultActualLineHeight")]
public double ActualLineHeight { [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="LinedFlowLayout::s_defaultActualLineHeight")] get; }
var double = linedFlowLayout.actualLineHeight;
Public ReadOnly Property ActualLineHeight As Double

Property Value

Double

double

The effective fixed height of the lines.

Attributes
Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValueAttribute

Remarks

The LineHeight property may be set to its default NaN value, therefore, you can use the ActualLineHeight property get the effective height of the lines. That fallback value is based on the desired size (UIElement.DesiredSize) of the item at index 0.

Returns 0.0 when the LinedFlowLayout's consuming ItemsRepeater has not been loaded or has not yet been involved in a layout pass that renders the UI.

Applies to