Frage

How do you add headers to the Windows Phone web browser control? I want to add two headers, fore and back. Right now I add one header by using this:

browser.Navigate(newUrl, null, "fore:red");

See documentation

But how would would I separate two headers? The third parameter of the Navigate method is called extraHeaders which implies more than one, but I don't know how to separate them.

War es hilfreich?

Lösung

The answer from Microsoft can be found here: http://support.microsoft.com/kb/172998 and it tells that the separator is a carriage return '\n'

Andere Tipps

I kept guessing and eventually figured out the separator character was a new line. ("\n"). No help from Microsoft's documentation. Now my code is something like:

 browser.Navigate(newUrl, null, "fore:red\nback:blue");
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top