I'm working on porting a large .NET Framework application to .NET Core. The application uses WPF for the UI layer and utilizes MVVM Light (MvvmLightLibsStd10) for implementing MVVM architecture.
One of the problems I'm currently facing is with cross-thread UI updates. In the Framework version I was using GalaSoft.MvvmLight.Platform
library to get access to DispatcherHelper
which contains an easy-to- use DispatcherHelper.CheckBeginInvokeOnUI()
function to disptach property change notifications.
Now this GalaSoft.MvvmLight.Platform
library is available in net45
folder in the NuGet package, but not in netstandard1.0
folder, which gives me a hint that this lib might be platform (Windows?)-specific and therefore not suitable for .net core project.
Is it advisable to use this lib? If not, what would be the proper way of raising property change notifications in a thread-safe manner?
Update: Just found that this is one of the requested features on github: