我在某处读到DataContext = this用户控件的构造函数中的设置是不好的做法(虽然无法找到).为什么这是不好的做法?有什么选择?
DataContext = this
c# wpf datacontext
c# ×1
datacontext ×1
wpf ×1