Skip to content

Instantly share code, notes, and snippets.

@markryd
Created September 17, 2013 23:47
Show Gist options
  • Select an option

  • Save markryd/6602373 to your computer and use it in GitHub Desktop.

Select an option

Save markryd/6602373 to your computer and use it in GitHub Desktop.
Rx property changed
ColumnSettings.Values.Select(c => Observable.FromEventPattern<PropertyChangedEventHandler, PropertyChangedEventArgs>
(h => c.PropertyChanged += h, h => c.PropertyChanged -= h))
.Merge()
.Throttle(TimeSpan.FromMilliseconds(1000))
.Subscribe(e => _updateSettingsAction.Execute(null));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment