當前位置: 首頁>>代碼示例>>C#>>正文


C# FileOpenPicker.PickMultipleFilesAndContinue方法代碼示例

本文整理匯總了C#中Windows.Storage.Pickers.FileOpenPicker.PickMultipleFilesAndContinue方法的典型用法代碼示例。如果您正苦於以下問題:C# FileOpenPicker.PickMultipleFilesAndContinue方法的具體用法?C# FileOpenPicker.PickMultipleFilesAndContinue怎麽用?C# FileOpenPicker.PickMultipleFilesAndContinue使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Windows.Storage.Pickers.FileOpenPicker的用法示例。


在下文中一共展示了FileOpenPicker.PickMultipleFilesAndContinue方法的9個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: image_Click

 private void image_Click(object sender, RoutedEventArgs e)
  {
     isPicure = true;
     Config.pictrueType = 1;
     image.IsEnabled = false;
     FileOpenPicker openPicker = new FileOpenPicker();
     openPicker.FileTypeFilter.Add(".jpg");
     openPicker.FileTypeFilter.Add(".png");
     openPicker.ContinuationData["Operation"] = "ImageWeibo";
     openPicker.PickMultipleFilesAndContinue();
 }
開發者ID:x01673,項目名稱:dreaming,代碼行數:11,代碼來源:Dreaming.xaml.cs

示例2: PickFilesButton_Click

        private void PickFilesButton_Click(object sender, RoutedEventArgs e)
        {
            // Clear any previously returned files between iterations of this scenario
            OutputTextBlock.Text = "";

            FileOpenPicker openPicker = new FileOpenPicker();
            openPicker.ViewMode = PickerViewMode.List;
            openPicker.SuggestedStartLocation = PickerLocationId.DocumentsLibrary;
            openPicker.FileTypeFilter.Add("*");

            openPicker.PickMultipleFilesAndContinue();
        }
開發者ID:ckc,項目名稱:WinApp,代碼行數:12,代碼來源:Scenario2_MultiFile.xaml.cs

示例3: LoadMultipleFilesButtonClick

        private async void LoadMultipleFilesButtonClick(object sender, RoutedEventArgs e)
        {
            var picker = new FileOpenPicker
            {
                ViewMode = PickerViewMode.List,
                SuggestedStartLocation = PickerLocationId.Desktop,
                FileTypeFilter = { "*" }
            };

#if WINDOWS_PHONE_APP
            picker.PickMultipleFilesAndContinue();            
#elif WINDOWS_APP
            IReadOnlyList<StorageFile> files = await picker.PickMultipleFilesAsync();
            foreach (var file in files)
            {
                DisplayFileName(file);
            }
#endif
        }
開發者ID:luiseduardohdbackup,項目名稱:Windows-Universal,代碼行數:19,代碼來源:MainPage.xaml.cs

示例4: add

        async void add()
        {
            try
            {


                FileOpenPicker openPicker = new FileOpenPicker();
                openPicker.ViewMode = PickerViewMode.List;
                openPicker.SuggestedStartLocation = PickerLocationId.DocumentsLibrary;
                openPicker.FileTypeFilter.Add("*");

                openPicker.PickMultipleFilesAndContinue();
              
                // Launch file open picker and caller app is suspended and may be terminated if required
                //openPicker.PickSingleFileAndContinue();


            }
            catch (Exception e)
            {
                new MessageDialog(e.Message + e.StackTrace).ShowAsync();
            }

        }
開發者ID:prabaprakash,項目名稱:Visual-Studio-2013,代碼行數:24,代碼來源:MainViewModel.cs

示例5: StartMultipartUpload_Click

        private void StartMultipartUpload_Click(object sender, RoutedEventArgs e)
        {
            // By default 'serverAddressField' is disabled and URI validation is not required. When enabling the text
            // box validating the URI is required since it was received from an untrusted source (user input).
            // The URI is validated by calling Uri.TryCreate() that will return 'false' for strings that are not valid URIs.
            // Note that when enabling the text box users may provide URIs to machines on the intrAnet that require
            // the "Home or Work Networking" capability.
            Uri uri;
            if (!Uri.TryCreate(serverAddressField.Text.Trim(), UriKind.Absolute, out uri))
            {
                rootPage.NotifyUser("Invalid URI.", NotifyType.ErrorMessage);
                return;
            }

            FileOpenPicker picker = new FileOpenPicker();
            picker.FileTypeFilter.Add("*");

#if WINDOWS_PHONE_APP
            picker.ContinuationData.Add("uri", uri.OriginalString);
            picker.PickMultipleFilesAndContinue();
#else
            StartMultipleFilesUpload(picker, uri);
#endif
        }
開發者ID:trilok567,項目名稱:Windows-Phone,代碼行數:24,代碼來源:Scenario2_Upload.xaml.cs

示例6: AddButtonClick_OnClick

 private async void AddButtonClick_OnClick(object sender, RoutedEventArgs e)
 {
     var picker = new FileOpenPicker();
     picker.FileTypeFilter.Add(".jpg");
     picker.PickMultipleFilesAndContinue();
 }
開發者ID:nguyenkien,項目名稱:MosaicImageControls,代碼行數:6,代碼來源:MainPage.xaml.cs

示例7: PerformAdd

 private void PerformAdd()
 {
     var openPicker = new FileOpenPicker();
     openPicker.ViewMode = PickerViewMode.List;
     openPicker.FileTypeFilter.Add(".mp3");
     openPicker.PickMultipleFilesAndContinue();
 }
開發者ID:Ob1To,項目名稱:AudioPlayer,代碼行數:7,代碼來源:PlaylistVM.cs

示例8: SelectFilesButton_Clicked

		private void SelectFilesButton_Clicked(object sender, RoutedEventArgs e)
		{
			FileOpenPicker folderPicker = new FileOpenPicker();
			folderPicker.SuggestedStartLocation = PickerLocationId.Downloads;
			folderPicker.FileTypeFilter.Add(DeviceFirmwareUpdateSettingPageViewModel.ZipFile);
			folderPicker.PickMultipleFilesAndContinue();
		}
開發者ID:LarryPavanery,項目名稱:Windows-nRF-Toolbox,代碼行數:7,代碼來源:Settings.xaml.cs

示例9: OpenFile

        private void OpenFile()
        {
            FileOpenPicker openPicker = new FileOpenPicker();
            openPicker.ViewMode = PickerViewMode.List;
            openPicker.SuggestedStartLocation = PickerLocationId.PicturesLibrary;
            foreach (string extension in handledExtensions)
            {
                openPicker.FileTypeFilter.Add(extension);
            }

            // Store this instance as the last caller of the continuation code
            ((App)(App.Current)).PickerCaller = this;

            // Launch file open picker and caller app is suspended and may be terminated if required
            openPicker.PickMultipleFilesAndContinue();
        }
開發者ID:jm991,項目名稱:HeliosApp,代碼行數:16,代碼來源:MainViewModel.cs


注:本文中的Windows.Storage.Pickers.FileOpenPicker.PickMultipleFilesAndContinue方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。