5 March 2008
I've gone ahead and updated the HtmlExtensions class that I previously blogged. The class is now updated to reflect the new HTML DOM bridge APIs in Silverlight 2. To be honest, I'd recommend dropping this class as a lot of its functionality (JavaScript eval, alert, and retrieving the <body /> element) are now available within Silverlight 2 Beta 1, which rocks!
To use this component in your own Silverlight 2 Beta 1 project, you can grab the bits either way:New HTML DOM bridge APIs that relate to this, and can be used directly from the Window instance of HtmlPage: Eval, Alert, and on HtmlPage, Body:
I'm also now offering a small assembly version of this class for any Visual Basic developers to use in their application targeting Silverlight 2.
Hope this helps!
Jeff Wilcox is a Software Engineer at Microsoft in the Open Source Programs Office (OSPO), helping Microsoft engineers use, contribute to and release open source at scale.