-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
{
//
}
답장을 보내 주셔서 감사합니다! 그러나 UWP에 대한 다른 파일 대화 상자 솔루션이 있습니까? – user8977483
내 지식만큼, 아니야. –
답장을 보내 주셔서 감사합니다. – user8977483