コード例 #1
0
 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;
 }
コード例 #2
0
        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;
        }