How to: Convert an Image to Grayscale

I ran across an issue where I wanted to convert an Image in a Windows Store app  to grayscale and could not find a great example.  So… here is one for you to try! private async Task imageToGrayscale(Image src, Image dest) { RenderTargetBitmap renderTargetBitmap = new RenderTargetBitmap(); //Get existing src pixels in a Byte[] (always…

4

Problem Signing with SafeNet EV Certificate

I had an interesting case that I want to share in the event anyone else experiences this problem.  In this case a Symantec certificate stored on a SafeNet USB dongle was being used to sign a Windows Store app in Visual Studio.  The signing was failing.  Visual Studio reported: “SignTool Error:  An unexpected internal error…

3

How To: Popup a XAML WebView UI async and wait for results

I needed to popup a WebView and wait on an event before continuing.  There really was no illustration on how to do this so here you all go! In my scenario I wanted to Navigate to a Uri to do some forms authentication and get some cookies loaded.  I knew when I was redirected to…

1

Attaching to a Windows Azure Mobile Services database in ASP.NET

The preferred way to talk to the database you are using for you Windows Azure Mobile Services is through the REST APIs and by using the Clients we supply for you.  The reason you should go through the REST APIs is to ensure you are hitting the Scripts you defined in your Mobile Service.  I…

0

Use PasswordVault to Store Your Tokens–Windows Azure Mobile Services

There was no end to end sample of how you might use the PasswordVault to store your JWT used for user authentication in Mobile Services.  I created this class to be used with your Windows Store app. Copy Code: using Microsoft.WindowsAzure.MobileServices; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Windows.Security.Credentials; namespace MobileServices.Samples.Authentication…

0

Using Parameters with Tables for Different Views – Windows Azure Mobile Services

In my two previous posts I discussed how to move your table filter logic server side, and how to use Virtual tables to get different views of data.  In this blog post I will show you how to pass parameters to you read script to get different views of the data. In this example, the…

0

Using Virtual Tables for Different Views – Windows Azure Mobile Services

Building on my last post (Move Your Client Logic to the Server – Windows Azure Mobile Services) I will show you how to create a Virtual (or dummy) table to give you a different view of your TodoItem table.  This Virtual table will not contain any records however. In this case, let’s assume you did…

4

Move Your Client Logic to the Server – Windows Azure Mobile Services

The Client Libraries for Windows Azure Mobile Services are powerful and allow you to embed logic within your client application.  The quickstart and sample applications give you a great overview on how to implement logic on the client to get the view of data you would like in the client application.  A different architecture for…

1

How to troubleshoot Windows Azure Mobile Services

Undoubtedly when developing application using Windows Azure Mobile Services you will get unexpected results.  This guide will help you isolate and troubleshoot the most common errors that you will encounter.  This post is not intended to solve you issues but help you isolate and simplify the problem so you can dig in deeper or engage…

1

Use Fiddler to Retrieve Data from your Windows Azure Mobile Service

Fiddler is a powerful tool that can help you isolate problems with your Windows Azure Mobile Service.  You can quickly eliminate your client code from the equation and start troubleshooting issues with this tool.  Here is how you can quickly test to see if you can fetch data stored in your Mobile Services! Install Fiddler…

0