Generating HTML from Silverlight

Martin has an interesting post on the technique he uses in his Silverlight chess board to generate HTML from a Silverlight application.

The idea is quite interesting because he uses Silverlight for what it’s strong (vector graphics here) and HTML for the rest (text and hyperlinks). The generated HTML is the list of moves. Click events over this list triggers back code in Silverlight.

One consequence of this technique is that the list is very easy to style and bring in harmony with the rest of the site using regular CSS even if you have no knowledge of Silverlight. It makes for nice and easy integration of the board in a blog or any application.

http://www.bennedik.de/2008/11/slim-silverlight.html

No Comments