windowsforms-devexpress-dot-xtralayout-dot-optionscustomizationform-38183d51.md
Using file paths sourced from untrusted input may expose unauthorized files or allow unintended file access. Always validate and normalize all external paths to prevent path manipulation.
Gets or sets the default directory for the “Open” dialog that is invoked when a user clicks on the Customization Form‘s Load Layout button.
Namespace : DevExpress.XtraLayout
Assembly : DevExpress.XtraLayout.v25.2.dll
NuGet Package : DevExpress.Win.Navigation
[DefaultValue("")]
public string DefaultRestoreDirectory { get; set; }
<DefaultValue("")>
Public Property DefaultRestoreDirectory As String
| Type | Default | Description |
|---|---|---|
| String | String.Empty |
The default directory for the Open dialog.
|
You can access this nested property as listed below:
| Object Type | Path to DefaultRestoreDirectory |
|---|---|
| LayoutControl |
.OptionsCustomizationForm .DefaultRestoreDirectory
|
The Customization Form display two buttons that allow a user to save the current layout to an XML file and then load it later. Clicking these buttons invokes the Save and Open dialogs respectively. Use the OptionsCustomizationForm.DefaultSaveDirectory and DefaultRestoreDirectory properties to specify the directories initially opened by these dialogs.
See Also
Customization Form - Layout Control
OptionsCustomizationForm Class