How does WPF OpenFileDialog track directory of last opened file?
问题 As we know WPF OpenFileDialog no more changes the app's working directory and RestoreDirectory property is "unimplemented". However, upon subsequent open, its initial directory is default to the last opened file rather than the original working directory, so this information must be stored somewhere. I wonder is it possible to get/set it from user code? 回答1: On Windows 7 the recent file information is stored in the registry at this key: HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer