title: Xamarin forms: How to take picture?
body: <p>In my xamarin forms application, I have a page in which there is a small camera view and I want to take picture from that camera view.</p>
  
  <p>If I want to navigate to new page completely and take picture, I know it can be done by using a plugin like <a href="https://github.com/jamesmontemagno/MediaPlugin/blob/master/samples/MediaSample/MediaSample/MediaPage.xaml.cs" rel="noreferrer">this</a></p>
  
  <pre><code>await CrossMedia.Current.TakePhotoAsync(new Plugin.Media.Abstractions.StoreCameraMediaOptions
          {
              Directory = "Test",
              SaveToAlbum = true,
              CompressionQuality = 75,
              CustomPhotoSize = 50,
              PhotoSize = PhotoSize.MaxWidthHeight,
              MaxWidthHeight = 2000,
              DefaultCamera = CameraDevice.Front
          });
  </code></pre>
  
  <p>Can anyone advice how I need to approach if I want to take a picture from the camera on my existing page without navigating to new page?</p>