I have a button that alternates between play/pause. Rather than flip-flopping a boolean, I want to see if there is a good solution using reactive extensions. Here is a rough estimate of what I was thinking.
var whenPlayClicked = Observable.FromEventPattern<EventArgs>(_playPauseButton, "Click")
.Take(1)
.Skip(1)
.Repeat();
var whenPauseclicked = Observable.FromEventPattern<EventArgs>(_playPauseButton, "Click")
.Skip(1)
.Take(1)
.Repeat();