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

定義

列の CellTemplate プロパティ値にバインドされた Binding によって定義される要素を取得します。

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

パラメーター

cell
DataGridCell

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

dataItem
Object

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

戻り値

FrameworkElement

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

適用対象