Update FilterIndex after ShowDialog of Save Dialog #45
Labels
enhancement
New feature or request
hacktoberfest
https://hacktoberfest.digitalocean.com
help wanted
Extra attention is needed
up-for-grabs
Milestone
Hi there!
Thanks for maintaining the good old ookii-dialogs assemblies! I would suggest the following enhancement:
Think of the scenario where you have a Save Dialog that has the following 2 filters:
Both filters have the same extension (XML) but after defining the file name in the dialog, you want to know which filter index was set in the dialog to decide if we save the XML in version 1 or version 2 of the data format.
After debugging and scrolling through the code, I've found out that the VistaSaveFileDialog never gets the filter index back after FileOk - unfortunately there are also no possibilites to customize the behavior manually, since the FileOk event only provides the CancelEventArgs.
I think this would be a good addition to the File Dialogs since I remember this worked in the original ones from Microsoft. Best place to implement this would be the GetResult method I guess...
Regards,
barnacleboy
The text was updated successfully, but these errors were encountered: