How to take a picture by the camera and show in display before saving data.....
на странице ..
<Image Source="{Binding ImageTakeFile2.source}" Grid.Column="0" WidthRequest="100" HeightRequest="100" HorizontalOptions="Start"/>
В ViewModel ..
private MediaFile _photo;
_photo = await CrossMedia.Current.TakePhotoAsync(new StoreCameraMediaOptions
{ Directory = "Sample", Name = "test.jpg", PhotoSize = PhotoSize.MaxWidthHeight, MaxWidthHeight = imageSize });
ImageTakeFile2.Source = ImageSource.FromStream(() =>
{
var stream = _photo.GetStream();
return stream;
});