wpf mvvm threading.Timer and TimerCallback problems
问题 I have a WPF application developed against the MVVM framework in which the ViewModel constructor set a Timer with a TimerCallback. The TimerCallback retrieves an ObservableCollection and passes it to a field on the VM. I have a CollectionViewSource which has its Source property set to the ObservableCollection. I am using a CollectionViewSource because I want to enable filtering on the Collection. I have found that when the TimerCallback attempts to pass the ObservableCollection into the local