ookii-dialogs-wpf
ookii-dialogs-wpf copied to clipboard
Suggestion: Add ClientGuid property to file dialogs
trafficstars
The IFileDialog interface already defines the SetClientGuid and ClearClientData methods.
Adding a ClientGuid property would enable an application to maintain different sets of dialog state for different scenarios, similar to the use of the WinRT pickers' SettingsIdentifier property described by Raymond Chen back in 2020:
The SettingsIdentifier property of the various file pickers lets you give names to your pickers
It should be as simple as adding a nullable Guid property to the VistaFileDialog and VistaFolderBrowserDialog classes, and calling dialog.SetClientGuid or dialog.ClientClientData in the SetDialogProperties method.