Пример #1
0
        private async void UploadPicture()
        {
            var file = await ImageChooser.LoadImage();

            if (file == null)
            {
                return;
            }

            ResetUpload();
            try
            {
                LoadingData = true;
                var info = await MediaUploadService.PostPictureAsync(file);

                BitmapImage.UriSource = HandleUploadInfo(info);
                //OnPropertyChanged(() => BitmapImage);
            }
            catch (Exception e)
            {
                ShowError(e.Message);
            }
        }