Reputation: 43
FileOpenPicker fileOpenPicker = new FileOpenPicker();
fileOpenPicker.FileTypeFilter.Add(".txt");
View the file without extension , and pick it
View all files , not only the required files, and pick it
fileOpenPicker.FileTypeFilter.Add("");
fileOpenPicker.FileTypeFilter.Add(".");
fileOpenPicker.FileTypeFilter.Add(".*");
It doesn't work
Upvotes: 0
Views: 154
Reputation: 8681
You could try to use the following code:
fileOpenPicker.FileTypeFilter.Add("*");
This will not set the file type when you use the file picker
Upvotes: 2