Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- protected async Task PickImage()
- {
- try
- {
- Stream stream = await DependencyService.Get<IPicturePicker>().GetImageStreamAsync();
- //stream.GetType<Uri>();
- if (stream != null)
- {
- Image image = new Image
- {
- Source = ImageSource.FromStream(() => stream),
- BackgroundColor = Color.Gray
- };
- cadastrar_foto_perfil.Source = ImageSource.FromStream(() => stream);
- }
- if (Device.OS == TargetPlatform.iOS)
- {
- loginPage.RecriaCadastroIOS();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement