WPF and cross thread operations

前端 未结 1 1283
余生分开走
余生分开走 2020-12-20 07:23

I have a small WPF application where I\'m simulating movement which is detected by a sensor. I fake that movement occurs after 1 minute and it stops after 2 minutes. Below i

相关标签:
1条回答
  • 2020-12-20 07:55

    You can use Dispatcher.Invoke() to marshall onto the UI thread.

    Please see: Making sure OnPropertyChanged() is called on UI thread in MVVM WPF app

    0 讨论(0)
提交回复
热议问题