INotifyPropertyChanged for Count property in WPF?
问题 I have a textbox which is bound to an Int property in my viewmodel which gets a count of an ObservableCollection . Here is my Xaml binding: Text="{Binding ArticleCount, Mode=OneWay}" And my int property: private Int32 _ArticleCount; public int ArticleCount { get { if (this.ModelviewArticleObservableList == null) { return 0; } else { return this.ModelviewArticleObservableList.Count; } } } This works fine on application initialisation and I get the ObservableCollection count in my UI TextBox .