Silverlight Browser on CodePlex

Last week Ernie Booth announced a SilverlightBrowser plugin for Reflector. The plugin allows you to browse web pages that contain Silverlight elements and display their constituent Javascript, XAML and assembly files.

 

Ernie released the 0.1 Alpha code so people were free to modify it. The way the 0.1 code obtained the .js, .xaml and .dll files was by searching the HTML and Javascript source for specific patterns. For example it would search the HTML file for 'Silverlight.createObject' and extract the .xaml link from its parameters. This is similar to how Lutz's SilverlightLoader plugin works.

The problem with this technique is that it assumes that the 'Silverlight.js' and API (which comes with the Silverlight SDK) is being used. Unfortunately this won't always be the case. Some people may include the <object> or <embed> tags directly in the HTML or embed the XAML in a <script> block. A good example of this is Sam Ruby's Inline SVG in MSIE demo. This demo creates a Silverlight <embed> element and converts the SVG content into XAML on the fly!

I've modified Ernie's code so that is searches the WebBrowser object model for the .js and .xaml files. This means it is no longer making the assumption that 'Silverlight.js' is being used. It doesn't yet support XAML that is emended in a <script> block. I'm hoping to have it working with Sam's demo in the next version.

I have kicked off a community project for the SilverlightBrowser plugin on CodePlex (with Ernie's blessing). You can download latest version of the plugin from here.

Published Thursday, May 24, 2007 8:36 AM by Jamie Cansdale
Filed under: , ,

Comments

# Interesting Finds: May 24, 2007

Thursday, May 24, 2007 6:40 PM by Jason Haley

# Developer News &raquo; Blog Archive &raquo; Silverlight Browser on CodePlexLast week Ernie Booth announced a SilverlightBrowser

Pingback from  Developer News  &raquo; Blog Archive   &raquo;  Silverlight Browser on CodePlexLast week Ernie Booth announced a SilverlightBrowser

# Developer News &raquo; Blog Archive &raquo; Silverlight Browser on CodePlexLast week Ernie Booth announced a SilverlightBrowser

Pingback from  Developer News  &raquo; Blog Archive   &raquo;  Silverlight Browser on CodePlexLast week Ernie Booth announced a SilverlightBrowser

# Developer News &raquo; Blog Archive &raquo; Students &#8217;should use Wikipedia&#8217; Wikipedia founder Jimmy Wales says teachers

Pingback from  Developer News  &raquo; Blog Archive   &raquo;  Students &#8217;should use Wikipedia&#8217; Wikipedia founder Jimmy Wales says teachers

# Developer News &raquo; Blog Archive &raquo; AquaFold ships Aqua Data Studio 6.5 AquaFold, Inc. has released

Pingback from  Developer News  &raquo; Blog Archive   &raquo;  AquaFold ships Aqua Data Studio 6.5 AquaFold, Inc. has released

# Developer News &raquo; Blog Archive &raquo; Microsoft vs TestDriven.NET - 06 June 2007Today Microsoft kindly extended

Pingback from  Developer News  &raquo; Blog Archive   &raquo;  Microsoft vs TestDriven.NET - 06 June 2007Today Microsoft kindly extended

# Developer News &raquo; Blog Archive &raquo; Silverlight Browser on CodePlexLast week Ernie Booth announced a SilverlightBrowser

Pingback from  Developer News  &raquo; Blog Archive   &raquo;  Silverlight Browser on CodePlexLast week Ernie Booth announced a SilverlightBrowser

# Developer News &raquo; Blog Archive &raquo; Silverlight Browser on CodePlexLast week Ernie Booth announced a SilverlightBrowser

Pingback from  Developer News  &raquo; Blog Archive   &raquo;  Silverlight Browser on CodePlexLast week Ernie Booth announced a SilverlightBrowser

# Developer News &raquo; Blog Archive &raquo; Shuttle launch moved to February Continuing work on the Atlantis

Pingback from  Developer News  &raquo; Blog Archive   &raquo;  Shuttle launch moved to February Continuing work on the Atlantis

# Developer News &raquo; Blog Archive &raquo; image not displayed in datalist Hii, i have a datalist

Pingback from  Developer News  &raquo; Blog Archive   &raquo;  image not displayed in datalist    Hii, i have a datalist

# Developer News &raquo; Blog Archive &raquo; Behind Closed Doors: Secrets of Great Management By Johanna Rothman

Pingback from  Developer News  &raquo; Blog Archive   &raquo;  Behind Closed Doors: Secrets of Great Management By Johanna Rothman

# Developer News &raquo; Blog Archive &raquo; Understanding SQL Server 2005 Notification Services with ASP.NET 2.0 This

Pingback from  Developer News  &raquo; Blog Archive   &raquo;  Understanding SQL Server 2005 Notification Services with ASP.NET 2.0     This

Leave a Comment

(required) 
(required) 
(optional)
(required)