DataGridColumn.GenerateEditingElement(DataGridCell, Object) DataGridColumn.GenerateEditingElement(DataGridCell, Object) DataGridColumn.GenerateEditingElement(DataGridCell, Object) DataGridColumn.GenerateEditingElement(DataGridCell, Object) Method

定義

在衍生類別中覆寫時,取得繫結至資料行之 Binding 屬性值的編輯項目。When overridden in a derived class, gets an editing element that is bound to the Binding property value of the column.

protected:
 abstract System::Windows::FrameworkElement ^ GenerateEditingElement(System::Windows::Controls::DataGridCell ^ cell, System::Object ^ dataItem);
protected abstract System.Windows.FrameworkElement GenerateEditingElement (System.Windows.Controls.DataGridCell cell, object dataItem);
abstract member GenerateEditingElement : System.Windows.Controls.DataGridCell * obj -> System.Windows.FrameworkElement
Protected MustOverride Function GenerateEditingElement (cell As DataGridCell, dataItem As Object) As FrameworkElement

參數

cell
DataGridCell DataGridCell DataGridCell DataGridCell

將會包含已產生之項目的儲存格。The cell that will contain the generated element.

dataItem
Object Object Object Object

由資料列 (內含所要的儲存格) 表示的資料項目。The data item that is represented by the row that contains the intended cell.

傳回

繫結至資料行之 Binding 屬性值的新編輯項目。A new editing element that is bound to the Binding property value of the column.

備註

當儲存格處於編輯模式時,這個方法會建立儲存格內容的視覺化樹狀結構。This method creates the visual tree for the cell content when the cell is in editing mode.

適用於

另請參閱