Skip to content

Instantly share code, notes, and snippets.

@atzimler
Created June 28, 2017 12:00
Show Gist options
  • Save atzimler/1fe6d5a70c22a1e993428f9563418ccf to your computer and use it in GitHub Desktop.
Save atzimler/1fe6d5a70c22a1e993428f9563418ccf to your computer and use it in GitHub Desktop.
vm.PropertyChanged += CallCounter;
using (vm.SuspendPropertyChangedEvent(CallCounter))
{
// do something that is raising PropertyChanged in normal, but CallCounter won't be called inside this block.
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment