Skip to content

Instantly share code, notes, and snippets.

@ionoy
Created April 25, 2016 14:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ionoy/57997b6a054a6df00ec294d037f71d01 to your computer and use it in GitHub Desktop.
Save ionoy/57997b6a054a6df00ec294d037f71d01 to your computer and use it in GitHub Desktop.
Observable.Interval(TimeSpan.FromSeconds(2))
.Delay(TimeSpan.FromSeconds(1))
.ObserveOnDispatcher()
.Subscribe(_ => ((Storyboard)Resources["FadeIn"]).Begin());
Observable.Interval(TimeSpan.FromSeconds(2))
.ObserveOnDispatcher()
.Subscribe(_ => ((Storyboard)Resources["FadeOut"]).Begin());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment