mvvmlight icon indicating copy to clipboard operation
mvvmlight copied to clipboard

PropertyChanged not being called on async methods when switching to commandwpf

Open SimonShugarVeeva opened this issue 6 years ago • 0 comments

Versions: MvvmLightLibs 5.3.0, .NET Framework 4.6.1

This is a WPF App using .NET.

The Issue We use a dispatcher on async methods to change a property's value and have it updated on the UI thread. This works when we use using GalaSoft.MvvmLight.Command but breaks when switch to using GalaSoft.MvvmLight.CommandWpf. We had to switch to CommandWpf to get the CanExecute working correctly.

Properties that were binded to user controls (like changing the status text) no longer work.

App.Current.Dispatcher.Invoke(new Action(() => this.MyProperty= true));

SimonShugarVeeva avatar Jun 13 '18 18:06 SimonShugarVeeva