WPF DataGrid method using CellTemplateSelector SelectTemplate Item parameter is NULL

First

In SelectTemplate and Item parameters not really been to Null. But first execution space parameters, and then after the execution will have parameters.

For reasons I do not know ...

 

Specific verification process

 

Also said to do non-empty detection

Guess you like

Origin www.cnblogs.com/T-ARF/p/10990445.html