[WPF]数据绑定失效的问题

有可能的原因如下:

绑定的属性一定是属性而不能是字段,比如:

public int data;

是无法生效的,而

public int data {get;set;}

这样才能生效

原文地址:https://www.cnblogs.com/lizhenghao126/p/11053584.html