//获取指定要呈现的xaml内容的包活xaml文件Uri var strFullUrl = Application.Current.Host.Source.AbsoluteUri; if (strFullUrl.IndexOf("ClientBin") > 0) { var uristr = strFullUrl.Substring(0, strFullUrl.IndexOf("ClientBin")) + "Report/Default.aspx"; var uri = new Uri(uristr); }
var uri = new Uri(App.Current.Host.Source, "../Report/Default.aspx");
string url = System.Windows.Browser.HtmlPage.Document.DocumentUri.ToString(); var struri = url.Substring(0, url.LastIndexOf("/")) + "/Report/Default.aspx"; var uri = new Uri(struri);
var xapUri = Application.Current.Host.Source; var uri = new Uri(xapUri, "../");