none
An alternative choice for Iframe and web browser control for loading webpage

    Question

  • Hi,

          I have been working in silverlight my requirement is I want to load a webpage in silverlight page.I dont want to use IFrame and web-browser control.I want an alternative option for that.Can anyone help me regarding this.

     

    Tuesday, April 24, 2012 7:58 AM

Answers

  • Hi,

    I think you should create a new local small web and put the html script in.

    And I've found a example create by Jeremy Likness and I think it is fantastic:

    http://csharperimage.jeremylikness.com/2010/09/hosting-html-in-silverlight-not-out-of.html

    After reading the article,just use 

        <Grid x:Name="LayoutRoot">
            <HtmlExample:HtmlHost x:Name="HtmlHostCtrl" Margin="40" HorizontalAlignment="Stretch" Height="400" Width="600" VerticalAlignment="Stretch" HostDiv="htmlHost" Url="http://m.google.com/"/>
        </Grid>

    You can see the page in the silverlight page!

    Wednesday, April 25, 2012 1:02 AM