ookii-dialogs-wpf icon indicating copy to clipboard operation
ookii-dialogs-wpf copied to clipboard

Suggestion: Add ClientGuid property to file dialogs

Open RichardD2 opened this issue 3 years ago • 0 comments
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.

RichardD2 avatar May 25 '22 15:05 RichardD2