Table of Contents

Class LayoutTransformControl

Namespace
Avalonia.Controls
Assembly
Avalonia.Controls.dll

Control that implements support for transformations as if applied by LayoutTransform.

public class LayoutTransformControl : Decorator, INotifyPropertyChanged, IDataContextProvider, ILogical, IThemeVariantHost, IResourceHost, IResourceNode, IStyleHost, ISetLogicalParent, ISetInheritanceParent, ISupportInitialize, IStyleable, INamed, IInputElement, IDataTemplateHost, ISetterValue
Inheritance
LayoutTransformControl
Implements
Inherited Members
Extension Methods

Constructors

LayoutTransformControl()

public LayoutTransformControl()

Fields

LayoutTransformProperty

public static readonly StyledProperty<ITransform?> LayoutTransformProperty

Field Value

StyledProperty<ITransform>

UseRenderTransformProperty

public static readonly StyledProperty<bool> UseRenderTransformProperty

Field Value

StyledProperty<bool>

Properties

LayoutTransform

Gets or sets a graphics transformation that should apply to this element when layout is performed.

public ITransform? LayoutTransform { get; set; }

Property Value

ITransform

TransformRoot

public Control? TransformRoot { get; }

Property Value

Control

UseRenderTransform

Utilize the RenderTransformProperty for layout transforms.

public bool UseRenderTransform { get; set; }

Property Value

bool

Methods

ArrangeOverride(Size)

Provides the behavior for the "Arrange" pass of layout.

protected override Size ArrangeOverride(Size finalSize)

Parameters

finalSize Size

The final area within the parent that this element should use to arrange itself and its children.

Returns

Size

The actual size used.

MeasureOverride(Size)

Provides the behavior for the "Measure" pass of layout.

protected override Size MeasureOverride(Size availableSize)

Parameters

availableSize Size

The available size that this element can give to child elements.

Returns

Size

The size that this element determines it needs during layout, based on its calculations of child element sizes.