private async void ChangeFolderClick(object sender, RoutedEventArgs e) { Windows.Storage.Pickers.FolderPicker picker = new Windows.Storage.Pickers.FolderPicker(); picker.SuggestedStartLocation = Windows.Storage.Pickers.PickerLocationId.PicturesLibrary; picker.FileTypeFilter.Add(".jpg"); picker.FileTypeFilter.Add(".png"); StorageFolder f = await picker.PickSingleFolderAsync(); dataSource = new xBindSampleModel.FileDataSource(); myGridView.ItemsSource = dataSource; LoadingPanel.Visibility = Visibility.Visible; await dataSource.SetupDataSource(f); LoadingPanel.Visibility = Visibility.Collapsed; }