I'm using Custom WPF Dialog box to select one or more files. Problem is that When you select more than a file, it'll throw Argumentexception("Illegal characters in path.") because of
void OnPathChanged(IFileDlgExt sender, string pathName)method on
FileDialogExt
class. Reason for issue is that pathName for multiple file is like:
D:\Development\ "WpfCustomFileDialog.dll" "WpfCustomFileDialog.pdb"Which is not a valid parameter for
System.IO.Path.GetFileNameand it'll throw Argumentexception("Illegal characters in path.").
How can I fix this it?
Regards