ColumnDefinition Class

Summary

Holds a column definitions for a Grid.
Namespace
Avalonia.Controls
Interfaces
Base Types
graph TD Base0["DefinitionBase"]-->Type click Base0 "/api/Avalonia.Controls/DefinitionBase" Base1["AvaloniaObject"]-->Base0 click Base1 "/api/Avalonia/AvaloniaObject" Base2["object"]-->Base1 Interface0["IAvaloniaObject"]-.->Type click Interface0 "/api/Avalonia/IAvaloniaObject" Interface1["IAvaloniaObjectDebug"]-.->Type click Interface1 "/api/Avalonia.Diagnostics/IAvaloniaObjectDebug" Interface2["INotifyPropertyChanged"]-.->Type Type["ColumnDefinition"] class Type type-node

Syntax

public class ColumnDefinition : DefinitionBase, IAvaloniaObject, IAvaloniaObjectDebug, 
    INotifyPropertyChanged

Constructors

Name Summary
ColumnDefinition() Initializes a new instance of the ColumnDefinition class.
ColumnDefinition(double, GridUnitType) Initializes a new instance of the ColumnDefinition class.
ColumnDefinition(GridLength) Initializes a new instance of the ColumnDefinition class.

Events

Name Type Summary
PropertyChanged EventHandler<AvaloniaPropertyChangedEventArgs>
Raised when a AvaloniaProperty value changes on this object.
Inherited from AvaloniaObject

Fields

Name Constant Value Summary
MaxWidthProperty
Defines the MaxWidth property.
static
MinWidthProperty
Defines the MinWidth property.
static
SharedSizeGroupProperty
Defines the SharedSizeGroup property.
Inherited from DefinitionBase
static
WidthProperty
Defines the Width property.
static

Properties

Name Value Summary
ActualWidth double
Gets the actual calculated width of the column.
InheritanceParent IAvaloniaObject
Gets or sets the parent object that inherited AvaloniaProperty values are inherited from.
Inherited from AvaloniaObject
MaxWidth double
Gets or sets the maximum width of the column in DIPs.
MinWidth double
Gets or sets the minimum width of the column in DIPs.
SharedSizeGroup string
Gets or sets the name of the shared size group of the column or row.
Inherited from DefinitionBase
this[AvaloniaProperty] object
Gets or sets the value of a AvaloniaProperty.
Inherited from AvaloniaObject
this[IndexerDescriptor] IBinding
Gets or sets a binding for a AvaloniaProperty.
Inherited from AvaloniaObject
Width GridLength
Gets or sets the width of the column.

Methods

Name Value Summary
AffectsValidation(AvaloniaProperty, AvaloniaProperty[]) void
Forces revalidation of properties when a property value changes.
Inherited from AvaloniaObject
static
Bind(AvaloniaProperty, IObservable<object>, BindingPriority) IDisposable
Binds a AvaloniaProperty to an observable.
Inherited from AvaloniaObject
Bind<T>(AvaloniaProperty<T>, IObservable<T>, BindingPriority) IDisposable
Binds a AvaloniaProperty to an observable.
Inherited from AvaloniaObject
CheckAccess() bool
Inherited from AvaloniaObject
ClearValue(AvaloniaProperty) void
Clears a AvaloniaProperty's local value.
Inherited from AvaloniaObject
GetValue(AvaloniaProperty) object
Gets a AvaloniaProperty value.
Inherited from AvaloniaObject
GetValue<T>(AvaloniaProperty<T>) T
Gets a AvaloniaProperty value.
Inherited from AvaloniaObject
IsAnimating(AvaloniaProperty) bool
Checks whether a AvaloniaProperty is animating.
Inherited from AvaloniaObject
IsSet(AvaloniaProperty) bool
Checks whether a AvaloniaProperty is set on this object.
Inherited from AvaloniaObject
OnPropertyChanged(AvaloniaPropertyChangedEventArgs) void
Called when a avalonia property changes on the object.
Inherited from AvaloniaObject
RaisePropertyChanged(AvaloniaProperty, object, object, BindingPriority) void
Raises the PropertyChanged event.
Inherited from AvaloniaObject
Revalidate(AvaloniaProperty) void
Forces the specified property to be revalidated.
Inherited from AvaloniaObject
SetAndRaise<T>(AvaloniaProperty<T>, T, AvaloniaObject.SetAndRaiseCallback<T>, T) bool
Sets the backing field for a direct avalonia property, raising the PropertyChanged event if the value has changed.
Inherited from AvaloniaObject
SetAndRaise<T>(AvaloniaProperty<T>, T, T) bool
Sets the backing field for a direct avalonia property, raising the PropertyChanged event if the value has changed.
Inherited from AvaloniaObject
SetValue(AvaloniaProperty, object, BindingPriority) void
Sets a AvaloniaProperty value.
Inherited from AvaloniaObject
SetValue<T>(AvaloniaProperty<T>, T, BindingPriority) void
Sets a AvaloniaProperty value.
Inherited from AvaloniaObject
UpdateDataValidation(AvaloniaProperty, BindingNotification) void
Called to update the validation state for properties for which data validation is enabled.
Inherited from AvaloniaObject
VerifyAccess() void
Inherited from AvaloniaObject

Extension Methods