更新时间:2023-10-02 17:31:52
您需要执行 INotifyPropertyChanged的
在您的视图模型以通知认为,属性已更改
You need to implement INotifyPropertyChanged
in your ViewModel order to notify the View that the property has changed.
下面是到MSDN页面的链接吧:的System.ComponentModel.INotifyPropertyChanged
Here's a link to the MSDN page for it: System.ComponentModel.INotifyPropertyChanged
要注意的最重要的事情是,你应该提高你的属性setter的的PropertyChanged
事件。
The most important thing to note is that you should raise the PropertyChanged
event in your property setter.