private void OnCollectionChanged(object sender, NotifyCollectionChangedEventArgs e) { if (this.recentPatients.Count <= 1) { // It could be a change between empty to non-empty. this.OnPropertyChanged("RecentPatients"); } } // implement the INotifyPropertyChanged pattern here.