public List <SnapsImage> PickImages()
        {
            List <SnapsImage> result = new List <SnapsImage>();

            AutoResetEvent dialogCompleteEvent = new AutoResetEvent(false);

            InvokeOnUIThread(
                async() =>
            {
                FileOpenPicker openPicker         = new FileOpenPicker();
                openPicker.ViewMode               = PickerViewMode.Thumbnail;
                openPicker.SuggestedStartLocation = PickerLocationId.PicturesLibrary;
                openPicker.FileTypeFilter.Add(".jpg");
                openPicker.FileTypeFilter.Add(".jpeg");
                openPicker.FileTypeFilter.Add(".png");

                var files = await openPicker.PickMultipleFilesAsync();

                foreach (StorageFile file in files)
                {
                    SnapsImage image = new SnapsImage(file);
                    result.Add(image);
                }

                dialogCompleteEvent.Set();
            }
                );

            dialogCompleteEvent.WaitOne();

            return(result);
        }
 public bool DisplaySnapsImage(SnapsImage image)
 {
     return(DoDisplaySnapsImage(image, graphicsCanvas.DisplayImage));
 }
 public bool DoDisplaySnapsImage(SnapsImage image, Image graphicsImage)
 {
     return(DoDisplayFileImage(image.File, graphicsImage));
 }