Accessing ViewModel properties from separate thread

前端 未结 3 1804
庸人自扰
庸人自扰 2021-01-03 00:52

In my wpf application, a time consuming operation in my viewmodel is called using a separate thread. This function, however, accesses several properties in the viewmodel tha

3条回答
  •  猫巷女王i
    2021-01-03 01:44

    There are no consequences aside from your usual thread safety concerns. The only thing that usually is problematic with VM properities are ObservableCollections which do have thread affinity.

提交回复
热议问题