Is there a way to specify the filter like in OpenFileDialog, e.g.
openFileDialog.Filter = "Text Files (.txt)|*.txt|All Files (*.*)|*.*"
FileOpenpicker.FileTypeFilter.Add
doesn't seem to accept the same syntax.
MSDN is a poor source of information in these regards and does not provide examples for vb.net
You probably got it by now, but in any case this is the way to do it (C#):
openPicker.FileTypeFilter.Add(".xxx");
openPicker.FileTypeFilter.Add(".yyy");
openPicker.FileTypeFilter.Add("*");
This will show 3 items on the list (.xxx), (.yyy) and "All files (*)".
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With