Skip to content

Instantly share code, notes, and snippets.

@markryd
Last active December 16, 2015 12:08
Show Gist options
  • Select an option

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

Select an option

Save markryd/5432013 to your computer and use it in GitHub Desktop.
Reactive Extensions
Observable
.FromEventPattern<PropertyChangedEventArgs>(this, "PropertyChanged")
.Where(e => e.EventArgs.PropertyName == "FilterText")
.Throttle(TimeSpan.FromMilliseconds(500))
.Subscribe(e => FilterItems());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment