coderushforroslyn-403953-static-code-analysis-xaml-analyzers-crxpf-0005-cell-template-without-part-editor.md
Severity: Error
The analyzer detects that you specified a cell template (ColumnBase.CellTemplate, DataViewBase.CellTemplate, ColumnBase.CellDisplayTemplate, DataViewBase.CellDisplayTemplate, ColumnBase.CellEditTemplate, or DataViewBase.CellEditTemplate) that contains a BaseEdit descendant and did not set the editor’s name to "PART_Editor".
<!-- GridColumn, TreeListColumn, TableView, TreeListView, CardView -->
<!-- CellTemplate, CellDisplayTemplate, CellEditTemplate -->
<dxg:GridColumn.CellTemplate>
<DataTemplate>
<!-- A DevExpress.Xpf.Editors.BaseEdit descendant: -->
<dxe:TextEdit/>
<!-- OR -->
<dxe:TextEdit Name="Not PART_Editor"/>
<!-- OR -->
<dxe:TextEdit x:Name="Not PART_Editor"/>
</DataTemplate>
</dxg:GridColumn.CellTemplate>
<!-- GridColumn, TreeListColumn, TableView, TreeListView, CardView -->
<!-- CellTemplate, CellDisplayTemplate, CellEditTemplate -->
<dxg:GridColumn.CellTemplate>
<DataTemplate>
<!-- A DevExpress.Xpf.Editors.BaseEdit descendant: -->
<dxe:TextEdit x:Name="PART_Editor"/>
</DataTemplate>
</dxg:GridColumn.CellTemplate>
If you define a custom editor (a BaseEdit descendant) in the cell’s template, set the editor’s name to "PART_Editor" to bind and configure the editor’s properties.
Refer to the following help topic for more information: Custom In-Place Cell Editors.