DataGridColumn.GenerateElement(DataGridCell, Object) メソッド

定義

派生クラスでオーバーライドされた場合、列の Binding プロパティの値にバインドされる読み取り専用要素を取得します。

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

パラメーター

cell
DataGridCell

生成された要素を格納するセル。

dataItem
Object

目的のセルを格納している行によって表されるデータ項目。

戻り値

列の Binding プロパティ値にバインドされた新しい読み取り専用要素。

注釈

このメソッドは、セルが表示モードのときに、セルの内容のビジュアル ツリーを作成します。

適用対象

こちらもご覧ください