【WPF】 Object reference not set to an instance of an object 坑

问题

 

 

 

 解决方案

 

 做个空值判断就可以了。

posted @ 2023-03-17 07:11  小林野夫  阅读(41)  评论(0编辑  收藏  举报
原文链接:https://www.cnblogs.com/cdaniu/