Registering Custom Protocol for Windows Phone 8 App WebBrowser Control-Collection of common programming errors
Recently i had to create a custom uri scheme,and that was pretty easy in your WMAppManifest add:
this is stands after Tokens
than in your App.cs file you redirect to the class which is responsible for the navigation
RootFrame.UriMapper = new CustomUriMapper();
for example
class CustomUriMapper : UriMapperBase
{
private string tempUri;
public override Uri MapUri(Uri uri)
{
tempUri = System.Net.HttpUtility.UrlDecode(uri.ToString());
if (tempUri.Contains("XXXX"))
{
return new Uri("/MainPage.xaml?parameter=XXXX", UriKind.Relative);
}
else
{
return new Uri("/MainPage.xaml", UriKind.Relative);
}
}
}
i hope i helped
EDIT
i have create a small project, and i’m sure it works, please try this
string url = "xxxx:";
WebBrowserTask browser = new WebBrowserTask();
browser.URL = url;
browser.Show();