DataGridTextColumn.GenerateElement(DataGridCell, Object) DataGridTextColumn.GenerateElement(DataGridCell, Object) DataGridTextColumn.GenerateElement(DataGridCell, Object) DataGridTextColumn.GenerateElement(DataGridCell, Object) Method

Definición

Obtiene un control TextBlock de solo lectura que se enlaza al valor de la propiedad Binding de la columna.Gets a read-only TextBlock control that is bound to the column's Binding property value.

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 DataGridCell DataGridCell DataGridCell

Celda que va a contener el elemento generado.The cell that will contain the generated element.

dataItem
Object Object Object Object

Elemento de datos representado por la fila que contiene la celda en cuestión.The data item represented by the row that contains the intended cell.

Devoluciones

Nuevo control de bloque de texto de solo lectura que está enlazado al valor de la propiedad Binding de la columna.A new, read-only text block control that is bound to the column's Binding property value.

Se aplica a