the code for the Windows Phone 8 UIP client