2017-12-18 12 views
-1

파일 열기 선택 도구 클래스에서 사용자 지정 시작 경로를 지정하는 방법을 알려주시겠습니까 ??FileOpenPicker - 사용자 지정 시작 경로를 지정하는 방법

'openPicker.SuggestedStartLocation'에는 사용자 지정 경로 옵션이 표시되지 않습니다.

읽어 주셔서 감사합니다.

 FileOpenPicker openPicker = new FileOpenPicker(); 
     openPicker.ViewMode = PickerViewMode.Thumbnail; 
     openPicker.SuggestedStartLocation = PickerLocationId.Desktop; 
     openPicker.FileTypeFilter.Add(".xml");    

     StorageFile file = await openPicker.PickSingleFileAsync(); 


     if(file!=null) 
     {     
      var stream = await file.OpenAsync(Windows.Storage.FileAccessMode.Read); 

     } 
     else 
     { 
      // 
     } 

답변

1

사용자 지정 시작 경로를 지정할 수 없습니다. 거기에 언급 된 경로 만 사용할 수 있습니다. 당신은 그것에 대해 읽을 수 있습니다 over here

+0

답장을 보내 주셔서 감사합니다! 그러나 UWP에 대한 다른 파일 대화 상자 솔루션이 있습니까? – user8977483

+0

내 지식만큼, 아니야. –

+0

답장을 보내 주셔서 감사합니다. – user8977483