Table of Contents

Class Container

Namespace
Avalonia.Styling
Assembly
Avalonia.Base.dll
public static class Container
Inheritance
Container
Inherited Members

Fields

NameProperty

Defines the Name attached property.

public static readonly AttachedProperty<string?> NameProperty

Field Value

AttachedProperty<string>

SizingProperty

Defines the Sizing attached property.

public static readonly AttachedProperty<ContainerSizing> SizingProperty

Field Value

AttachedProperty<ContainerSizing>

Methods

GetName(Layoutable)

Gets the value of the Container.Name attached property.

public static string? GetName(Layoutable layoutable)

Parameters

layoutable Layoutable

The layoutable to read the value from.

Returns

string

The container name of the layoutable

GetSizing(Layoutable)

Gets the value of the Container.Sizing attached property.

public static ContainerSizing GetSizing(Layoutable layoutable)

Parameters

layoutable Layoutable

The layoutable to read the value from.

Returns

ContainerSizing

The container sizing mode of the layoutable

SetName(Layoutable, string?)

Sets the value of the Container.Name attached property.

public static void SetName(Layoutable layoutable, string? name)

Parameters

layoutable Layoutable

The layoutable to set the value on.

name string

The container name.

SetSizing(Layoutable, ContainerSizing)

Sets the value of the Container.Name attached property.

public static void SetSizing(Layoutable layoutable, ContainerSizing sizing)

Parameters

layoutable Layoutable

The layoutable to set the value on.

sizing ContainerSizing

The container sizing mode.