Happy stress free coding

Feb 26, 2012

Note to self–how to clear cache from WPF-browser apps

mage.exe –cc

 

And this is how to send params to wpf app

// Pass the data using query string.
Response.Redirect("http://localhost/XbapCookieDemo/XbapCookieDemo.xbap?MyDat
a=" + data);
And in the XBAP application, you could retrieve the data using following
method:
String queryString = BrowserInteropHelper.Source.Query;
if (queryString != null && queryString.Length 0)
{
MessageBox.Show(queryString.Trim('?'));
}

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]



<< Home