I'm using CommonSaveFileDialog of WindowsAPICodePack in WPF to ask the user for a filename. In order to check the filename before the dialog is closed, I have a handler for FileOk. But if I try to get the FileName property, there is an InvalidOperationException thrown saying that this property is not available before the dialog is closed.
So how can I retrieve the full file name that the user selected or entered, when in FileOk handler?