DataGridTemplateColumn.GenerateElement(DataGridCell, Object) Método

Definición

Obtiene un elemento definido por que CellTemplate está enlazado al valor de propiedad de Binding la columna.

protected:
 override System::Windows::FrameworkElement ^ GenerateElement(System::Windows::Controls::DataGridCell ^ cell, System::Object ^ dataItem);
protected override System.Windows.FrameworkElement GenerateElement(System.Windows.Controls.DataGridCell cell, object dataItem);
override this.GenerateElement : System.Windows.Controls.DataGridCell * obj -> System.Windows.FrameworkElement
Protected Overrides Function GenerateElement (cell As DataGridCell, dataItem As Object) As FrameworkElement

Parámetros

cell
DataGridCell

Celda que contendrá el elemento generado.

dataItem
Object

Elemento de datos representado por la fila que contiene la celda deseada.

Devoluciones

Nuevo elemento de solo lectura enlazado al valor de propiedad de Binding la columna.

Se aplica a