Skip to content

Instantly share code, notes, and snippets.

@igorkulman
Created March 13, 2016 20:51
Show Gist options
  • Save igorkulman/2885b4a6faa5b0861f17 to your computer and use it in GitHub Desktop.
Save igorkulman/2885b4a6faa5b0861f17 to your computer and use it in GitHub Desktop.
var ccu = new CameraCaptureUI();
var file = await ccu.CaptureFileAsync(CameraCaptureUIMode.Photo);
if (file != null)
{
await ProcessFile(file);
}
var openPicker = new FileOpenPicker
{
ViewMode = PickerViewMode.Thumbnail,
SuggestedStartLocation = PickerLocationId.PicturesLibrary
};
openPicker.FileTypeFilter.Add(".jpg");
var file = await openPicker.PickSingleFileAsync();
if (file != null)
{
await ProcessFile(file);
}
var openPicker = new FileOpenPicker
{
ViewMode = PickerViewMode.Thumbnail,
SuggestedStartLocation = PickerLocationId.PicturesLibrary
};
openPicker.FileTypeFilter.Add(".jpg");
openPicker.PickSingleFileAndContinue();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment