Skip to main content

ColumnDefinition Class

Definition

Assembly:Avalonia.Controls
Package:Avalonia

Holds a column definitions for a Avalonia.Controls.Grid.

public class ColumnDefinition

Inheritance: object -> AvaloniaObject -> DefinitionBase -> ColumnDefinition

Constructors

NameDescription
ColumnDefinition (3 overloads)Initializes a new instance of the Avalonia.Controls.ColumnDefinition class.

ColumnDefinition overloads

ColumnDefinition Constructor

Initializes a new instance of the Avalonia.Controls.ColumnDefinition class.

public ColumnDefinition()

ColumnDefinition Constructor

Initializes a new instance of the Avalonia.Controls.ColumnDefinition class.

public ColumnDefinition(Avalonia.Controls.GridLength width)
Parameters

width Avalonia.Controls.GridLength

The width of the column.

ColumnDefinition Constructor

Initializes a new instance of the Avalonia.Controls.ColumnDefinition class.

public ColumnDefinition(double value, Avalonia.Controls.GridUnitType type)
Parameters

value double

The width of the column.

type Avalonia.Controls.GridUnitType

The width unit of the column.

Methods

NameDescription
Bind (8 overloads)Binds a Avalonia.AvaloniaProperty to an Avalonia.Data.BindingBase. Inherited from AvaloniaObject.
CheckAccessReturns a value indicating whether the current thread is the UI thread. Inherited from AvaloniaObject.
ClearValue (4 overloads)Clears a Avalonia.AvaloniaProperty's local value. Inherited from AvaloniaObject.
CoerceValueCoerces the specified Avalonia.AvaloniaProperty. Inherited from AvaloniaObject.
EqualsCompares two objects using reference equality. Inherited from AvaloniaObject.
GetBaseValueInherited from AvaloniaObject.
GetHashCodeGets the hash code for the object. Inherited from AvaloniaObject.
GetValue (3 overloads)Gets a Avalonia.AvaloniaProperty value. Inherited from AvaloniaObject.
IsAnimatingChecks whether a Avalonia.AvaloniaProperty is animating. Inherited from AvaloniaObject.
IsSetChecks whether a Avalonia.AvaloniaProperty is set on this object. Inherited from AvaloniaObject.
SetCurrentValue (2 overloads)Sets the value of a dependency property without changing its value source. Inherited from AvaloniaObject.
SetValue (3 overloads)Sets a Avalonia.AvaloniaProperty value. Inherited from AvaloniaObject.
VerifyAccessChecks that the current thread is the UI thread and throws if not. Inherited from AvaloniaObject.

Properties

NameDescription
ActualWidthGets the actual calculated width of the column.
MaxWidthGets or sets the maximum width of the column in DIPs.
MinWidthGets or sets the minimum width of the column in DIPs.
WidthGets or sets the width of the column.
SharedSizeGroupSharedSizeGroup property. Inherited from DefinitionBase.
DispatcherReturns the Avalonia.AvaloniaObject.Dispatcher that this Avalonia.AvaloniaObject is associated with. Inherited from AvaloniaObject.
ItemInherited from AvaloniaObject.

ActualWidth Property

Gets the actual calculated width of the column.

public double ActualWidth { get; set; }

MaxWidth Property

Gets or sets the maximum width of the column in DIPs.

public double MaxWidth { get; set; }

MinWidth Property

Gets or sets the minimum width of the column in DIPs.

public double MinWidth { get; set; }

Width Property

Gets or sets the width of the column.

public Avalonia.Controls.GridLength Width { get; set; }

Fields

NameDescription
MaxWidthPropertyDefines the Avalonia.Controls.ColumnDefinition.MaxWidth property.
MinWidthPropertyDefines the Avalonia.Controls.ColumnDefinition.MinWidth property.
WidthPropertyDefines the Avalonia.Controls.ColumnDefinition.Width property.
SharedSizeGroupPropertyShared size group property marks column / row definition as belonging to a group "Foo" or "Bar". Inherited from DefinitionBase.

MaxWidthProperty Field

Defines the Avalonia.Controls.ColumnDefinition.MaxWidth property.

public Avalonia.StyledProperty<double> MaxWidthProperty

MinWidthProperty Field

Defines the Avalonia.Controls.ColumnDefinition.MinWidth property.

public Avalonia.StyledProperty<double> MinWidthProperty

WidthProperty Field

Defines the Avalonia.Controls.ColumnDefinition.Width property.

public Avalonia.StyledProperty<Avalonia.Controls.GridLength> WidthProperty

Events

NameDescription
PropertyChangedRaised when a Avalonia.AvaloniaProperty value changes on this object. Inherited from AvaloniaObject.