DataGridTemplateColumn.GenerateElement(DataGridCell, Object) Method

Definition

Gets an element defined by the CellTemplate that is bound to the column's Binding property value.

protected override Windows.UI.Xaml.FrameworkElement GenerateElement (Microsoft.Toolkit.Uwp.UI.Controls.DataGridCell cell, object dataItem);
override this.GenerateElement : Microsoft.Toolkit.Uwp.UI.Controls.DataGridCell * obj -> Windows.UI.Xaml.FrameworkElement
Protected Overrides Function GenerateElement (cell As DataGridCell, dataItem As Object) As FrameworkElement

Parameters

cell
DataGridCell

The cell that will contain the generated element.

dataItem
Object

The data item represented by the row that contains the intended cell.

Returns

Windows.UI.Xaml.FrameworkElement

A new, read-only element that is bound to the column's Binding property value.

Exceptions

Applies to