DataGridCheckBoxColumn Class

Summary

Represents a System.Windows.Controls.DataGrid column that hosts System.Windows.Controls.CheckBox controls in its cells.
Namespace
Avalonia.Controls
Interfaces
Base Types
graph TD Base0["DataGridBoundColumn"]-->Type click Base0 "/api/Avalonia.Controls/DataGridBoundColumn" Base1["DataGridColumn"]-->Base0 click Base1 "/api/Avalonia.Controls/DataGridColumn" Base2["AvaloniaObject"]-->Base1 click Base2 "/api/Avalonia/AvaloniaObject" Base3["object"]-->Base2 Interface0["IAvaloniaObject"]-.->Type click Interface0 "/api/Avalonia/IAvaloniaObject" Interface1["IAvaloniaObjectDebug"]-.->Type click Interface1 "/api/Avalonia.Diagnostics/IAvaloniaObjectDebug" Interface2["INotifyPropertyChanged"]-.->Type Type["DataGridCheckBoxColumn"] class Type type-node

Syntax

public class DataGridCheckBoxColumn : DataGridBoundColumn, IAvaloniaObject, IAvaloniaObjectDebug, 
    INotifyPropertyChanged

Constructors

Name Summary
DataGridCheckBoxColumn() Initializes a new instance of the System.Windows.Controls.DataGridCheckBoxColumn class.

Events

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

Properties

Name Value Summary
ActualWidth double
Actual visible width after Width, MinWidth, and MaxWidth setting at the Column level and DataGrid level have been taken into account
Inherited from DataGridColumn
Binding IBinding
Gets or sets the binding that associates the column with a property in the data source.
Inherited from DataGridBoundColumn
CanUserReorder bool
Gets or sets a value that indicates whether the user can change the column display position by dragging the column header.
Inherited from DataGridColumn
CanUserResize bool
Gets or sets a value that indicates whether the user can adjust the column width using the mouse.
Inherited from DataGridColumn
CanUserSort bool
Gets or sets a value that indicates whether the user can sort the column by clicking the column header.
Inherited from DataGridColumn
CellStyleClasses Classes
Inherited from DataGridColumn
ClipboardContentBinding IBinding
The binding that will be used to get or set cell content for the clipboard. If the base ClipboardContentBinding is not explicitly set, this will return the value of Binding.
Inherited from DataGridBoundColumn
DisplayIndex int
Gets or sets the display position of the column relative to the other columns in the DataGrid.
Inherited from DataGridColumn
Header object
Inherited from DataGridColumn
InheritanceParent IAvaloniaObject
Gets or sets the parent object that inherited AvaloniaProperty values are inherited from.
Inherited from AvaloniaObject
IsAutoGenerated bool
Inherited from DataGridColumn
IsFrozen bool
Inherited from DataGridColumn
IsReadOnly bool
Inherited from DataGridColumn
IsThreeState bool
Gets or sets a value that indicates whether the hosted System.Windows.Controls.CheckBox controls allow three states or two.
IsVisible bool
Determines whether or not this column is visible.
Inherited from DataGridColumn
MaxWidth double
Inherited from DataGridColumn
MinWidth double
Inherited from DataGridColumn
SortMemberPath string
Holds the name of the member to use for sorting, if not using the default.
Inherited from DataGridColumn
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 DataGridLength
Inherited from DataGridColumn

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
CancelCellEdit(IControl, object) void
Causes the column cell being edited to revert to the specified value.
CheckAccess() bool
Inherited from AvaloniaObject
ClearValue(AvaloniaProperty) void
Clears a AvaloniaProperty's local value.
Inherited from AvaloniaObject
GenerateEditingElement(DataGridCell, object, ICellEditBinding) IControl
Inherited from DataGridBoundColumn
GenerateEditingElementDirect(DataGridCell, object) IControl
Gets a System.Windows.Controls.CheckBox control that is bound to the column's System.Windows.Controls.DataGridBoundColumn.Binding property value.
GenerateElement(DataGridCell, object) IControl
Gets a read-only System.Windows.Controls.CheckBox control that is bound to the column's System.Windows.Controls.DataGridBoundColumn.Binding property value.
GetCellContent(DataGridRow) IControl
Inherited from DataGridColumn
GetCellContent(object) IControl
Inherited from DataGridColumn
GetColumnContainingElement(IControl) DataGridColumn
Returns the column which contains the given element
Inherited from DataGridColumn
static
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
NotifyPropertyChanged(string) void
Called by a specific column type when one of its properties changed, and its current cells need to be updated.
Inherited from DataGridColumn
OnPropertyChanged(AvaloniaPropertyChangedEventArgs) void
Called when a avalonia property changes on the object.
Inherited from AvaloniaObject
PrepareCellForEdit(IControl, RoutedEventArgs) object
Called when a cell in the column enters editing mode.
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