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);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)