本文介绍了在Silverlight中将iframe放置在子窗口中的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
hi ..
我以编程方式在我的Silver-light应用程序的子窗口中创建了一个iframe.
现在,我尝试调用我的子窗口,并将其打开为空.
iframe未加载.
以下是我的代码:
hi..
i pro-grammatically created a iframe in my child window of silver-light application.
now i try to call my child window and its open with empty.
the iframe is not loading.
below is my code:
System.Windows.Browser.HtmlElement iframe;
iframe = HtmlPage.Document.CreateElement("iframe");
iframe.Id = "invisibleIframe";
iframe.SetProperty("src", "http://ilabs.uw.edu/sites/default/files/sample_0.pdf");
iframe.SetStyleAttribute("width", "800");
iframe.SetStyleAttribute("height", "600");
iframe.SetAttribute("onload", "contentLoaded"); // call a function which calls silverlight.Content.Page.Loaded()
HtmlElement body = (HtmlElement)HtmlPage.Document.GetElementsByTagName("body")[0];
body.AppendChild(iframe);
如何解决这个问题..
需要您的建议..
问候
gopal.s
how to tackle this issue..
need ur suggestions..
regards
gopal.s
推荐答案
这篇关于在Silverlight中将iframe放置在子窗口中的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!