Search code examples
silverlight-4.0webbrowser-controlframeset-iframe

How to retrieve HTML from silverlight Webbrowser control out of frames


i need to get the html of a frame inside the silverlight webbrowser control. i've looked at the following questions

How to retrieve HTML from Webbrowser control out of frames in .net (c#)

accessing Frames rendered in webbrowser control in C#.net

but they offer solution for WPF. how to do the same in silverlight webbrowser control?


Solution

  • I dont think this will be possible, since

    If you host content in an , all the regular security rules for iframes apply.

    from http://msdn.microsoft.com/en-us/library/system.windows.controls.webbrowser(v=vs.95).aspx

    and if i understand this line correctly, this means, you wont be able to access any content from within the iFrame.