ColumnDefinition Class
Definition
Holds a column definitions for a Avalonia.Controls.Grid.
public class ColumnDefinition
Constructors
| Name | Description |
|---|---|
| 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
| Name | Description |
|---|---|
| Bind (8 overloads) | Binds a Avalonia.AvaloniaProperty to an Avalonia.Data.BindingBase. Inherited from AvaloniaObject. |
| CheckAccess | Returns 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. |
| CoerceValue | Coerces the specified Avalonia.AvaloniaProperty. Inherited from AvaloniaObject. |
| Equals | Compares two objects using reference equality. Inherited from AvaloniaObject. |
| GetBaseValue | Inherited from AvaloniaObject. |
| GetHashCode | Gets the hash code for the object. Inherited from AvaloniaObject. |
| GetValue (3 overloads) | Gets a Avalonia.AvaloniaProperty value. Inherited from AvaloniaObject. |
| IsAnimating | Checks whether a Avalonia.AvaloniaProperty is animating. Inherited from AvaloniaObject. |
| IsSet | Checks 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. |
| VerifyAccess | Checks that the current thread is the UI thread and throws if not. Inherited from AvaloniaObject. |
Properties
| Name | Description |
|---|---|
| ActualWidth | Gets the actual calculated width of the column. |
| MaxWidth | Gets or sets the maximum width of the column in DIPs. |
| MinWidth | Gets or sets the minimum width of the column in DIPs. |
| Width | Gets or sets the width of the column. |
| SharedSizeGroup | SharedSizeGroup property. Inherited from DefinitionBase. |
| Dispatcher | Returns the Avalonia.AvaloniaObject.Dispatcher that this Avalonia.AvaloniaObject is associated with. Inherited from AvaloniaObject. |
| Item | Inherited 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
| Name | Description |
|---|---|
| MaxWidthProperty | Defines the Avalonia.Controls.ColumnDefinition.MaxWidth property. |
| MinWidthProperty | Defines the Avalonia.Controls.ColumnDefinition.MinWidth property. |
| WidthProperty | Defines the Avalonia.Controls.ColumnDefinition.Width property. |
| SharedSizeGroupProperty | Shared 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
| Name | Description |
|---|---|
| PropertyChanged | Raised when a Avalonia.AvaloniaProperty value changes on this object. Inherited from AvaloniaObject. |