Table of Contents

Class TableViewComboBoxColumn

Namespace
WinUI.TableView
Assembly
WinUI.TableView.dll

Represents a column in a TableView that displays a ComboBox.

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

Fields

DisplayMemberPathProperty

Identifies the DisplayMemberPath dependency property.

public static readonly DependencyProperty DisplayMemberPathProperty

Field Value

DependencyProperty

IsEditableProperty

Identifies the IsEditable dependency property.

public static readonly DependencyProperty IsEditableProperty

Field Value

DependencyProperty

ItemsSourceProperty

Identifies the ItemsSource dependency property.

public static readonly DependencyProperty ItemsSourceProperty

Field Value

DependencyProperty

SelectedValuePathProperty

Identifies the SelectedValuePath dependency property.

public static readonly DependencyProperty SelectedValuePathProperty

Field Value

DependencyProperty

Properties

DisplayMemberPath

Gets or sets the path to the display member for the ComboBox.

public string? DisplayMemberPath { get; set; }

Property Value

string

IsEditable

Gets or sets a value indicating whether the ComboBox is editable.

public bool IsEditable { get; set; }

Property Value

bool

ItemsSource

Gets or sets the items source for the ComboBox.

public object? ItemsSource { get; set; }

Property Value

object

SelectedValueBinding

Gets or sets the binding for the selected value property of the ComboBox.

public virtual Binding? SelectedValueBinding { get; set; }

Property Value

Binding

SelectedValuePath

Gets or sets the path to the selected value for the ComboBox.

public string? SelectedValuePath { get; set; }

Property Value

string

TextBinding

Gets or sets the binding for the text property of the ComboBox.

public virtual Binding? TextBinding { get; set; }

Property Value

Binding

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 a ComboBox element for editing 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 ComboBox element.

GenerateElement(TableViewCell, object?)

Generates a TextBlock 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 TextBlock 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.