Exemple #1
0
        private async void getUserPicture()
        {
            try
            {
                LiveOperationResult result = await client.Get("/me/picture");

                dynamic     pictureResult = result.Result;
                BitmapImage imgSource     = new BitmapImage();
                imgSource.UriSource   = new Uri(pictureResult.location, UriKind.Absolute);
                this.userImage.Source = imgSource;
            }
            catch (LiveConnectException e)
            {
                statusTxt.Text = e.Message;
            }

            getUserName();
        }