Silverlight里怎样嵌套aspx页面?
如题,用Silverlight搭的框架,如何在框架里嵌套aspx的页面?
[解决办法]
可以设置一个框架<iframe id="iframeReport" style="position:absolute;top:120px;left:0px;width:200px;height:200px;visibility:hidden;margin-left:15px;" src="http://www.google.com/"></iframe>
添加事件:
Dim wb As System.Windows.Browser.HtmlElement = System.Windows.Browser.HtmlPage.Document.GetElementById("iframeReport")
If wb IsNot Nothing Then
wb.SetAttribute("src", "http://www.microsoft.com/")
wb.SetStyleAttribute("visibility", "visible")
End If
有第三方控件支持: http://www.componentone.com/SuperProducts/HtmlHostSilverlight/