A prototype WPF/Silverlight layout designer

I’ve been thinking recently about how would I write a WPF UI designer that would specifically highlight the new WPF layout paradigm, and not try to mimic the old WinForms paradigm. The old VB6/WinForms designer was built around absolute positioning. It allowed for rapid WYSIWYG prototyping of interfaces, and the Dock/Anchor functionality provided a relatively…

14

Bezier Curves and Car Manufacturers

Michael has asked me if it was possible to add Bezier curves to Live Geometry. So I went ahead and added a Bezier tool (and it took me about 30 minutes to do so!): This draws a cubic Bezier curve using four points: There is something beautiful and elegant about these curves. No wonder industrial…

3

Saving images (.bmp, .png, etc) in WPF/Silverlight

I’ve recently added a new feature to Live Geometry that allows users to save the current drawing as a bitmap or a .png file. Just push the save button and pick the desired image format in the Save dialog: Fortunately, both WPF and Silverlight support saving full visual contents of any visual into a file…

10

Silverlight 3 is out!

“Well, unless you’ve been living under a rock…” © CyrusN 🙂 I’m very excited about Silverlight 3 which has TONS of new awesome features, from better graphics and text to out-of-browser support, style improvements and… drumroll… SaveFileDialog (finally) 🙂 Links: ScottGu’s announcement: http://weblogs.asp.net/scottgu/archive/2009/07/10/silverlight-3-released.aspx Jesse Liberty’s List Of New Features Wiki: http://www.silverlightgeekwiks.com/NewInSilverlight3/homepage.html Tim Heuer’s blog: http://timheuer.com/blog/archive/2009/07/10/silverlight-3-released-what-is-new-and-changed.aspx…

0

Algorithms in C#: shortest path around a polygon (polyline routing)

Suppose you have to build a road to connect two cities on different sides of a lake. How would you plan the road to make it as short as possible? To simplify the problem statement, a lake is sufficiently well modeled by a polygon, and the cities are just two points. The polygon does not…

14