Animate (smoothly) ScrollViewer programmatically

You should stick with ChangeView for scrolling animations regardless of whether data virtualization is on or not. Without seeing your code where the ChangeView doesn’t work, it’s a bit hard to guess what’s really going on but there are a couple of things that you can try. First approach is to add a Task.Delay(1) before … Read more

Windows Phone 8.1 – Page Navigation

In Windows Phone 8.1, Page Navigation method is like this: Frame.Navigate(typeof(SecondPage), param); It means that you will navagate to ‘SecondPage’, and pass ‘param’ (a class based on object). If you needn’t to pass any parameters, You can use this: Frame.Navigate(typeof(SecondPage)); You can find the documentation for this MSDN link

Using Client certificates for Windows RT (windows 8.1/windows phone 8.1)

The problem could be related to the validity of the certificate that you are using it. By default .Net refuses to establish https connection with invalid or not trusted certificate. Usually the certificate is invalid because it is generate by a non-trusted authority (self signed certificate) or because the address of the site is not … Read more

Disable web page navigation on swipe(back and forward)

You Should Try this solution in two way : 1) CSS only fix for Chrome/Firefox html, body { overscroll-behavior-x: none; } 2) JavaScript fix for Safari if (window.safari) { history.pushState(null, null, location.href); window.onpopstate = function(event) { history.go(1); }; } Over time, Safari will implement overscroll-behavior-x and we’ll be able to remove the JS hack Possible … Read more

Hide Status bar in Windows Phone 8.1 Universal Apps

With the release of Windows Phone 8.1 SDK comes a new StatusBar. The StatusBar replaces the SystemTray from Windows Phone Silverlight Apps. Unlike the SystemTray, the StausBar can only be accessed via code and some functionality has changed. StatusBar statusBar = Windows.UI.ViewManagement.StatusBar.GetForCurrentView(); // Hide the status bar await statusBar.HideAsync(); //Show the status bar await statusBar.ShowAsync(); … Read more

How to POST using HTTPclient content type = application/x-www-form-urlencoded

var nvc = new List<KeyValuePair<string, string>>(); nvc.Add(new KeyValuePair<string, string>(“Input1”, “TEST2”)); nvc.Add(new KeyValuePair<string, string>(“Input2”, “TEST2”)); var client = new HttpClient(); var req = new HttpRequestMessage(HttpMethod.Post, url) { Content = new FormUrlEncodedContent(nvc) }; var res = await client.SendAsync(req); Or var dict = new Dictionary<string, string>(); dict.Add(“Input1”, “TEST2”); dict.Add(“Input2”, “TEST2”); var client = new HttpClient(); var req = … Read more

tech