Inserting images in window:
public
MainPage()
{
this.InitializeComponent();
}
///
<summary>
///
Invoked when this page is about to be displayed in a Frame.
///
</summary>
///
<param name="e">Event
data that describes how this page was reached. The Parameter
/// property is
typically used to configure the page.</param>
protected override
void OnNavigatedTo(NavigationEventArgs e)
{
}
private async void
button1_Click(object sender, RoutedEventArgs e)
{
FileOpenPicker
openpicker = new FileOpenPicker();
openpicker.ViewMode = PickerViewMode.Thumbnail;
openpicker.SuggestedStartLocation = PickerLocationId.PicturesLibrary;
///
<summary>
///
adding file extensions, as per requirement
openpicker.FileTypeFilter.Add(".jpg");
openpicker.FileTypeFilter.Add(".jpeg");
openpicker.FileTypeFilter.Add(".png");
openpicker.FileTypeFilter.Add(".gif");
openpicker.FileTypeFilter.Add(".tif");
StorageFile file
= await openpicker.PickSingleFileAsync();
}