Allowing Untrusted SSL Certificates with HttpClient

A quick and dirty solution is to use the ServicePointManager.ServerCertificateValidationCallback delegate. This allows you to provide your own certificate validation. The validation is applied globally across the whole App Domain. ServicePointManager.ServerCertificateValidationCallback += (sender, cert, chain, sslPolicyErrors) => true; I use this mainly for unit testing in situations where I want to run against an endpoint … Read more

How to pass values (parameters) between XAML pages?

Methods to pass parameters 1. Using the query string You can pass parameters through the query string, using this method means have to convert your data to strings and url encode them. You should only use this to pass simple data. Navigating page: page.NavigationService.Navigate(new Uri(“/Views/Page.xaml?parameter=test”, UriKind.Relative)); Destination page: string parameter = string.Empty; if (NavigationContext.QueryString.TryGetValue(“parameter”, out … Read more

IE10 renders in IE7 mode. How to force Standards mode?

Internet Explorer makes the assumption that most webpages were written to target earlier versions of IE and looks at the doctype, meta tags and HTML to determine the best compatibility mode (sometimes incorrectly). Even with a HTML5 doctype IE will still place your website in compatibility mode if it’s an intranet site. To ensure that … Read more