Table of Contents

Class OverlayLayer

Namespace
Avalonia.Controls.Primitives
Assembly
Avalonia.Controls.dll
public class OverlayLayer : Canvas, INotifyPropertyChanged, IDataContextProvider, ILogical, IThemeVariantHost, IResourceHost, IResourceNode, IStyleHost, ISetLogicalParent, ISetInheritanceParent, ISupportInitialize, IStyleable, INamed, IInputElement, IDataTemplateHost, ISetterValue, IChildIndexProvider, INavigableContainer
Inheritance
OverlayLayer
Implements
Inherited Members
Extension Methods

Constructors

OverlayLayer()

public OverlayLayer()

Properties

AvailableSize

public Size AvailableSize { get; }

Property Value

Size

BypassFlowDirectionPolicies

Gets a value indicating whether control bypass FlowDirecton policies.

protected override bool BypassFlowDirectionPolicies { get; }

Property Value

bool

Remarks

Related to FlowDirection system and returns false as default, so if FlowDirection is RTL then control will get a mirror presentation. For controls that want to avoid this behavior, override this property and return true.

Methods

ArrangeOverride(Size)

Arranges the control's children.

protected override Size ArrangeOverride(Size finalSize)

Parameters

finalSize Size

The size allocated to the control.

Returns

Size

The space taken.

GetOverlayLayer(Visual)

public static OverlayLayer? GetOverlayLayer(Visual visual)

Parameters

visual Visual

Returns

OverlayLayer

MeasureOverride(Size)

Measures the control.

protected override Size MeasureOverride(Size availableSize)

Parameters

availableSize Size

The available size.

Returns

Size

The desired size of the control.