Created
March 13, 2016 20:51
-
-
Save igorkulman/2885b4a6faa5b0861f17 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var ccu = new CameraCaptureUI(); | |
var file = await ccu.CaptureFileAsync(CameraCaptureUIMode.Photo); | |
if (file != null) | |
{ | |
await ProcessFile(file); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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