If someone launches my xbap from http://myserver/folder/application.xbap, I would like to get the http://myserver/folder/ part of the url from within the application.
How can I do that?
I have tried:
System.IO.Directory.GetCurrentDirectory()System.IO.Path.GetDirectoryName(System.Diagnostics.Process.GetCurrentProcess().MainModule.FileName)Environment.CurrentDirectorySystem.Reflection.Assembly.GetExecutingAssembly().LocationAppDomain.CurrentDomain.BaseDirectorySystem.Windows.Application.Current.StartupUri.AbsolutePathSystem.Environment.GetCommandLineArgs()[0]System.Deployment.Application.ApplicationDeployment.CurrentDeployment.DataDirectory
They all return either the local location on my machine that the xbap got downloaded to and is running from, or the location of the executing assembly, such as C:\Windows\SysWOW64
How can I access the URL that was used to launch an xbap application from within the application itself?
I believe it was
BrowserInteropHelper.Source: