Table of Contents

Class TableViewCheckBoxColumn

Namespace
WinUI.TableView
Assembly
WinUI.TableView.dll

Represents a column in a TableView that displays a CheckBox.

[StyleTypedProperty(Property = "ElementStyle", StyleTargetType = typeof(CheckBox))]
[GeneratedBindableCustomProperty]
public class TableViewCheckBoxColumn : TableViewBoundColumn, IWinRTObject
Inheritance
object
DependencyObject
TableViewCheckBoxColumn
Implements
IWinRTObject
Inherited Members

Constructors

TableViewCheckBoxColumn()

Initializes a new instance of the TableViewCheckBoxColumn class.

public TableViewCheckBoxColumn()

Methods

EndCellEditing(TableViewCell, object?, TableViewEditAction, object?)

Called to end the editing session for the cell.

protected override void EndCellEditing(TableViewCell cell, object? dataItem, TableViewEditAction editAction, object? uneditedValue)

Parameters

cell TableViewCell

The cell whose editing session is being ended.

dataItem object

The data item associated with the cell.

editAction TableViewEditAction

The edit action.

uneditedValue object

The unedited value of the cell.

GenerateEditingElement(TableViewCell, object?)

Generates an editing element for the cell.

public override FrameworkElement GenerateEditingElement(TableViewCell cell, object? dataItem)

Parameters

cell TableViewCell

The cell for which the editing element is generated.

dataItem object

The data item associated with the cell.

Returns

FrameworkElement

A FrameworkElement representing the editing element.

GenerateElement(TableViewCell, object?)

Generates a CheckBox element for the cell.

public override FrameworkElement GenerateElement(TableViewCell cell, object? dataItem)

Parameters

cell TableViewCell

The cell for which the element is generated.

dataItem object

The data item associated with the cell.

Returns

FrameworkElement

A CheckBox element.

PrepareCellForEdit(TableViewCell, RoutedEventArgs)

Called to prepare the cell for editing.

protected override object? PrepareCellForEdit(TableViewCell cell, RoutedEventArgs routedEvent)

Parameters

cell TableViewCell

The cell to prepare for editing.

routedEvent RoutedEventArgs

The routed event.

Returns

object

Should return the unedited cell value.

UpdateElementState(TableViewCell, object?)

Updates the state of the element for the cell.

public override void UpdateElementState(TableViewCell cell, object? dataItem)

Parameters

cell TableViewCell

The cell for which the element state is updated.

dataItem object

The data item associated with the cell.