views:

37

answers:

3

I was wondering if there is some silverlight control in which I could basically use as an <iframe> ... I would like to embed a page into my silverlight application in a panel.

Any ideas?

+1  A: 

There is no kind of WebBrowser control for Silverlight. I think your best bet is to run the Silverlight plugin in windowless mode and use HTML/CSS to overlay a regular <iframe> on top. You could also experiment with making the plugin background transparent and having some sort of regular iframe "show through" from below in a certain area. You would then just need to style appropriately in both Silverlight and CSS and blend them to the point where it is transparent to the user what is really going on.

Here's a tutorial demonstrating blending some HTML with Silverlight.

Be aware that running in windowless mode comes with some limitations and a performance hit, as every frame is essentially getting rendered by both the plugin and the browser.

Dan Auclair
A: 

If your question pertains only to Silverlight 3 then it does not have any control to host HTML content.

However, Silverlight 4 introduces the WebBrowser control which can be used to host any HTML content. Note that it only works in OOB (out-of-browser) scenarios.

More details from this post

icysharp
A: 

While there were some nice suggestions and responses here, I am currently working with an Infragistics HTMLViewer for xaml. Right now it is doing everything I need. If anyone else is interested, here is a link.

gmcalab