Requires the Silverlight plugin to see the silverlight rendering, and a browser that supports SVG to see the SVG rendering.
This is a work in progress. Conversion of many SVG features (e.g., viewBox, use, xlink, and many, many more) are not yet supported. The only feature to date that I have found that I can’t directly support is text-anchor.
As this is displaying SVG inside of HTML (vs. XHTML), some SVG features may not display properly. In particular, in this iteration xlink isn’t supported. This is a solved problem, it is just that the code necessary isn’t in place just yet.
On Firefox, the two textareas are live: make a change to the SVG and see both the Silverlight equivalent and both images update. Make a change to the Canvas, and see the rendering update. For reasons not yet debugged, this doesn’t work on IE.
This code is really, really, grungy. At the moment, I’m simply hacking to see what is possible. Serious refactoring will ultimately be required.
Feel free to view-source, submit patches, or make suggestions. I’m particularly interested in feedback from people who know Silverlight. Some of the Silverlight renderings are incomprehensible to me, for example: this one.
Jeff - It is very easy to manipulate both the browser dom and Silverlight DOM and the ASP.NET Futures release we did makes it even easier... I did a demo of this at AjaxWorld a while back when Silverlight was still WPFE... [link]
Check out the $getXaml() in last screen shot for example
Resources: silverlight.net MSDN Silverlight Dev Center Silverlight tools & resources Some articles: SilverLight, Flash, and SVG Sam Ruby: SVG to Silverlight Workbench Why Silverlight Is Important...
There’s a lot of Silverlight in the air right now. I haven’t seen the 'net abuzz like this since FutureSplash Animator . ;) I’ve been collecting links to samples out there. Since Silverlight is all text (XAML, JS, etc) there’s a whole world of...
Lutz’s Silverlight Monotone - Reminds me of the demo scene on C64 Digger - really a Boulderdash game clone Inplay - MP3 player. Listen to Hanselminutes if you like. DLR/Dynamic Silverlight Samples There’s a pile here, make sure you get the...
Nice work, but still a pity to see how easy it is to change the syntax from SVG to XAML and yet IE doesn’t do it natively. They keep creating these one-way doors from other technologies to MS specific technologies. Am I the only one seeing this?
Silverlight and XAML, have you guys met Old Man SVG?
Summary XAML uses a vector graphics markup which is very similar to SVG, but since it’s part of a complete application framework the designers decided to use a slightly different format. I’d expect that XAML would be able to load...
This is a very useful tool for anyone doing WPF development (not only Silverlight). If you are using WPF and the Silverlight image at the bottom doesn’t look right don’t worry, the generated XAML usually works well in the “full” WPF, you can test...
SVG open 2007 has started this morning in Tokyo. SVG 101 A bright sun, it is 9:56am, and I’m following a session given by Doug Schepers on SVG 101, explaining the basis of SVG. SVG is a language for describing......
It was about 5 years ago (March of 2002 by my records) that Miguel de Icaza and Sam Ruby tried to convince us to ship our own Ruby runtime for .NET, and we thought it was a swell idea. That was probably before DHH heard of...
Is there any simple way to convert a SVG to Silverlight? I found the following site with wath i need : [link] But i would like to use this on my own application. Any web service i...