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

版权声明:本文为本人原创文章,未经博主允许不得转载。 https://blog.csdn.net/m0_37316917/article/details/86764388

有可能的原因如下:

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

public int data;

是无法生效的,而

public int data {get;set;}

这样才能生效

猜你喜欢

转载自blog.csdn.net/m0_37316917/article/details/86764388
今日推荐