我在下载文件夹中有一个名为“StudentDetails”的子文件夹。它包含带有学生姓名的子文件夹。每个学生姓名都包含与该学生相关的图像。默认情况下,我想打开那个 StudentDetails 文件夹(OnSuggestedStartLocation 没有达到目标)。它应该在左侧列出所有学生姓名。当用户点击每个学生姓名时,相应的文件应显示在右侧。uwp上可以吗?
FileOpenPicker openPicker = new FileOpenPicker();
openPicker.ViewMode = PickerViewMode.Thumbnail;
openPicker.SuggestedStartLocation = PickerLocationId.Downloads;
foreach (string extension in FileExtensions.Video)
{
openPicker.FileTypeFilter.Add(extension);
}
file = await openPicker.PickSingleFileAsync();