Skip to content

Update FilterIndex after ShowDialog of Save Dialog #45

Open
@barnacleboy

Description

@barnacleboy

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:

  • XML file version 1
  • XML file version 2

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions