WebUtility.HtmlDecode vs HttpUtilty.HtmlDecode

The implementation of the two methods are indeed different on Windows Phone. WebUtility.HtmlDecode: public static void HtmlDecode(string value, TextWriter output) { if (value != null) { if (output == null) { throw new ArgumentNullException(“output”); } if (!StringRequiresHtmlDecoding(value)) { output.Write(value); } else { int length = value.Length; for (int i = 0; i < length; i++) … Read more

On Windows Phone’s IE Touchstart Event Ends Automatically After Few Seconds

I suspect you are running into a multi-touch issue… Remember, touch events are not the same as mouse events. You can touch with more than one finger. What happens if you touch with one finger than add a second finger? You get two consecutive touchstart events. The same is probably true for touchend. I suspect … 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

Run “async” method on a background thread

To fix your example specifically: public void Activate() { Task.Factory.StartNew(() => { //executes in thread pool. return GetSomething(); // returns a Task. }) // returns a Task<Task>. .Unwrap() // “unwraps” the outer task, returning a proxy // for the inner one returned by GetSomething(). .ContinueWith(task => { // executes in UI thread. Prop = task.Result; … Read more

Visual studio the project needs to be deployed before it can be started

Probably the reason for this is that your Build and Deploy configurations aren’t enabled. To enable these configurations. Do these steps: Step 1: Open the Configuration Manager by clicking the active solution configuration. The default is <Debug>: Step 2: Enable the Build and Deploy configurations by checking the boxes for Any CPU. After this, you … Read more

(Dis)Connecting bluetooth devices with Windows.Devices.Bluetooth.Rfcomm (WP8.1)

I would try CoolTerm and see if that works for you. I was having a similar issue connecting a speaker with a Sigma DSP chip inside via USB connection, so if you are having trouble seeing external devices it may be that the device is incompatible with your computer. Download CoolTerm and go to options … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)