Skip to main content
A newer version of this page is available. .

DXFileDialog.RestoreDirectory Property

Gets or sets a value indicating whether the file dialog restores the current directory to the previously selected directory before closing.

Namespace: DevExpress.Xpf.Dialogs

Assembly: DevExpress.Xpf.Dialogs.v19.1.dll

Declaration

public bool RestoreDirectory { get; set; }

Property Value

Type Description
Boolean

true, if the file dialog restores the current directory to the previously selected directory; otherwise, false. The default value is false.

Remarks

When an end-user changes a current directory in the DXSaveFileDialog or DXOpenFileDialog, the application’s current directory changes too. The current directory’s path is stored in the RestoreDirectory property. You can get the application’s current directory using the WPF standard GetCurrentDirectory method.

See Also