I need FileOpenPicker without FileTypeFilter! When I do not add FileTypeFilter, it gives an exception such as: "The FileTypeFilters property must contain at least one file type filter." But I need to see all file types in FileOpenPicker!
FileOpenPicker fileOpenPicker = new FileOpenPicker(); fileOpenPicker.ViewMode = PickerViewMode.Thumbnail; //fileOpenPicker.FileTypeFilter.Add(".txt"); I dot not need any filter !! fileOpenPicker.CommitButtonText = "Select Files"; fileOpenPicker.SuggestedStartLocation = PickerLocationId.PicturesLibrary; IReadOnlyList<StorageFile> files =await fileOpenPicker.PickMultipleFilesAsync(); List<string> fileList = new List<string>(); StringBuilder sb = new StringBuilder(); foreach (StorageFile file in files) { fileList.Add(file.Name); sb.AppendLine(file.Name); }
Can anybody help me? Thanks, advanced!
source share