使用.ObserveOnDispatcher()解决,nuget安装ReactiveUI.WPF
参考
winforms - Rx Example not working - Stack Overflow