Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
// Create an observable for MouseLeftButtonDown var mouseEvents = Observable.FromEvent<MouseButtonEventArgs> (mycontrol, "MouseLeftButtonDown"); //Query the observable just to select the points var points = from ev in mouseEvents select ev.EventArgs.GetPosition(this); //Show points in windows title when ever user presses the left mouse button points.Subscribe(p => this.Title = "Location = " + p.X + ", " + p.Y);
This paste will be private.
From the Design Piracy series on my blog: