I need to be able to work out what page is hosting my silverlight app. I can get the url of the iframe using System.Windows.Browser.HtmlPage.Document.DocumentUri.AbsolutePath, but I want to get the URL of the web page hosting the iframe.
System.Windows.Browser.HtmlPage.Document.DocumentElement.Parent is null.
Thanks!
Well somebody gave me a link but their answer has since disappeared? Cheers whoever it was! 🙂
This is the way I did it:
MainPage.xaml.cs:
Default.aspx: